語言

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

要找到註解的關鍵。

傳回

標註中指定名稱。

適用於