語言

AnnotatableBase.CreateRuntimeAnnotation(String, Object) 方法

定義

建立新的執行時註解。

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

參數

name
String

註解的鑰匙。

value
Object

註解中要儲存的值。

傳回

新建立的註解。

適用於