ConventionAnnotatableExtensions.GetAnnotation(IConventionAnnotatable, String) Yöntem

Tanım

Verilen ada sahip ek açıklamayı alır, yoksa oluşturulur.

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

Parametreler

annotatable
IConventionAnnotatable

Ek açıklamanın bulunacağı nesne.

annotationName
String

Bulunacak ek açıklamanın anahtarı.

Döndürülenler

IConventionAnnotation

Belirtilen ada sahip ek açıklama.

Şunlara uygulanır