語言

AnnotatableExtensions.GetAnnotation(IAnnotatable, String) 方法

定義

取得帶有名稱的註解,若不存在則拋出。

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

參數

annotatable
IAnnotatable

要在上面找到註解的物件。

annotationName
String

要找到註解的關鍵。

傳回

標註中指定名稱。

適用於