Udostępnij przez


AnnotatableExtensions.GetAnnotation(IAnnotatable, String) Metoda

Definicja

Pobiera adnotację o podanej nazwie, zgłaszając ją, jeśli nie istnieje.

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

Parametry

annotatable
IAnnotatable

Obiekt do znalezienia adnotacji.

annotationName
String

Klucz adnotacji do znalezienia.

Zwraca

Adnotacja o określonej nazwie.

Dotyczy