語言

AnnotatableBase.AddRuntimeAnnotation 方法

定義

多載

名稱 Description
AddRuntimeAnnotation(String, Annotation)

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

AddRuntimeAnnotation(String, Object)

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

AddRuntimeAnnotation(String, Annotation)

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

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

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

參數

name
String

註解的鍵要加入。

annotation
Annotation

註解待加入。

傳回

額外的註解。

適用於

AddRuntimeAnnotation(String, Object)

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

為此物件新增執行時註解。 如果已有指定名稱的註解存在,則會拋出。

public virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation AddRuntimeAnnotation(string name, object? value);
abstract member AddRuntimeAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
override this.AddRuntimeAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.Annotation
Public Overridable Function AddRuntimeAnnotation (name As String, value As Object) As Annotation

參數

name
String

註解的鍵要加入。

value
Object

註解中要儲存的值。

傳回

新加入的註解。

適用於