語言

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

註解中要儲存的值。

傳回

新建立的註解。

適用於