Share via


Annotatable.CreateAnnotation(String, Object) 方法

定義

建立新的批註。

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

參數

name
String

批註的索引鍵。

value
Object

要儲存在注釋中的值。

傳回

新建立的注釋。

適用於