Compartir a través de


MutableAnnotatableExtensions.SetOrRemoveAnnotation Método

Definición

Establece la anotación almacenada bajo el nombre especificado. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado. Quita la anotación existente si null se proporciona.

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)

Parámetros

annotatable
IMutableAnnotatable

Objeto para el que se va a establecer la anotación.

name
String

Nombre de la anotación que se va a agregar.

value
Object

Valor que se va a almacenar en la anotación.

Se aplica a