語言

AnnotatableBase.SetAnnotation 方法

定義

多載

名稱 Description
SetAnnotation(String, Annotation, Annotation)

設定在指定鍵下儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

SetAnnotation(String, Object)

設定在指定鍵下儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

SetAnnotation(String, Annotation, Annotation)

來源:
AnnotatableBase.cs
來源:
AnnotatableBase.cs
來源:
AnnotatableBase.cs
來源:
AnnotatableBase.cs
來源:
AnnotatableBase.cs
來源:
AnnotatableBase.cs

設定在指定鍵下儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

protected virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation? SetAnnotation(string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation annotation, Microsoft.EntityFrameworkCore.Infrastructure.Annotation? oldAnnotation);
abstract member SetAnnotation : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.SetAnnotation : string * Microsoft.EntityFrameworkCore.Infrastructure.Annotation * Microsoft.EntityFrameworkCore.Infrastructure.Annotation -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Protected Overridable Function SetAnnotation (name As String, annotation As Annotation, oldAnnotation As Annotation) As Annotation

參數

name
String

註解的鍵要加入。

annotation
Annotation

註解要設定。

oldAnnotation
Annotation

註解正在被替換。

傳回

那個註解。

適用於

SetAnnotation(String, Object)

來源:
AnnotatableBase.cs
來源:
AnnotatableBase.cs
來源:
AnnotatableBase.cs
來源:
AnnotatableBase.cs
來源:
AnnotatableBase.cs
來源:
AnnotatableBase.cs

設定在指定鍵下儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。

public virtual void SetAnnotation(string name, object? value);
abstract member SetAnnotation : string * obj -> unit
override this.SetAnnotation : string * obj -> unit
Public Overridable Sub SetAnnotation (name As String, value As Object)

參數

name
String

註解的鍵要加入。

value
Object

註解中要儲存的值。

適用於