Share via


MutableAnnotatableExtensions.SetOrRemoveAnnotation Metodo

Definizione

Imposta l'annotazione archiviata sotto il nome specificato. Sovrascrive l'annotazione esistente se esiste già un'annotazione con il nome specificato. Rimuove l'annotazione esistente se null specificata.

public static void SetOrRemoveAnnotation (this Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable annotatable, string name, object value);
static member SetOrRemoveAnnotation : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable * string * obj -> unit
<Extension()>
Public Sub SetOrRemoveAnnotation (annotatable As IMutableAnnotatable, name As String, value As Object)

Parametri

annotatable
IMutableAnnotatable

Oggetto per cui impostare l'annotazione.

name
String

Nome dell'annotazione da aggiungere.

value
Object

Valore da archiviare nell'annotazione.

Si applica a