共用方式為


Annotatable.IMutableAnnotatable.AddAnnotation(String, Object) 方法

定義

將批註加入至這個物件。 如果具有指定名稱的注釋已經存在,則會擲回 。

Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation IMutableAnnotatable.AddAnnotation (string name, object value);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation IMutableAnnotatable.AddAnnotation (string name, object value);
[System.Diagnostics.DebuggerStepThrough]
Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation IMutableAnnotatable.AddAnnotation (string name, object? value);
abstract member Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
override this.Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
override this.Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.AddAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
Function AddAnnotation (name As String, value As Object) As IAnnotation Implements IMutableAnnotatable.AddAnnotation

參數

name
String

要加入之批註的名稱。

value
Object

要儲存在批註中的值。

傳回

新加入的批註。

實作

屬性

適用於