Język

MutableAnnotatableExtensions.SetOrRemoveAnnotation Metoda

Definicja

Ustawia adnotację przechowywaną pod daną nazwą. Zastępuje istniejącą adnotację, jeśli adnotacja o określonej nazwie już istnieje. Usuwa istniejącą adnotację, jeśli null jest podana.

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)

Parametry

annotatable
IMutableAnnotatable

Obiekt ustawiania adnotacji dla elementu .

name
String

Nazwa adnotacji do dodania.

value
Object

Wartość, która ma być przechowywana w adnotacji.

Dotyczy