MutableAnnotatableExtensions.GetAnnotation 方法

定義

取得具有指定名稱的注釋,如果不存在,則會擲回。

public static Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation GetAnnotation (this Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable annotatable, string annotationName);
static member GetAnnotation : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable * string -> Microsoft.EntityFrameworkCore.Infrastructure.IAnnotation
<Extension()>
Public Function GetAnnotation (annotatable As IMutableAnnotatable, annotationName As String) As IAnnotation

參數

annotatable
IMutableAnnotatable

要尋找注釋的物件。

annotationName
String

要尋找之批註的索引鍵。

傳回

具有指定名稱的批註。

適用於