ConventionAnnotatableExtensions.GetAnnotation Метод

Определение

Возвращает заметку с заданным именем, вызывая исключение, если она не существует.

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

Параметры

annotatable
IConventionAnnotatable

Объект, для поиска заметки.

annotationName
String

Ключ заметки для поиска.

Возвращаемое значение

Заметка с указанным именем.

Применяется к