Jazyk

ConventionAnnotatableExtensions.GetAnnotation Metoda

Definice

Získá anotace s daným názvem vyvolá, pokud neexistuje.

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

Parametry

annotatable
IConventionAnnotatable

Objekt, na který chcete najít poznámku.

annotationName
String

Klíč poznámky, který chcete najít.

Návraty

Poznámka se zadaným názvem.

Platí pro