Share via


MutableAnnotatableExtensions.GetAnnotation Metodo

Definizione

Ottiene l'annotazione con il nome specificato, che genera se non esiste.

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

Parametri

annotatable
IMutableAnnotatable

Oggetto su cui trovare l'annotazione.

annotationName
String

Chiave dell'annotazione da trovare.

Restituisce

Annotazione con il nome specificato.

Si applica a