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

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

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

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

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