Annotatable.SetAnnotation Método

Definición

Sobrecargas

SetAnnotation(String, Annotation)

Establece la anotación almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

SetAnnotation(String, Object)

Establece la anotación almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

SetAnnotation(String, Annotation, Annotation)

Establece la anotación almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

SetAnnotation(String, Annotation)

Source:
Annotatable.cs
Source:
Annotatable.cs

Establece la anotación almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

C#
protected virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation SetAnnotation (string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation annotation);

Parámetros

name
String

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

annotation
Annotation

Anotación que se va a establecer.

Devoluciones

Anotación que se estableció.

Se aplica a

Entity Framework Core 2.2 otras versiones
Producto Versiones
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2

SetAnnotation(String, Object)

Source:
Annotatable.cs
Source:
Annotatable.cs
Source:
Annotatable.cs
Source:
Annotatable.cs
Source:
Annotatable.cs

Establece la anotación almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

C#
public virtual void SetAnnotation (string name, object value);

Parámetros

name
String

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

value
Object

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

Implementaciones

Se aplica a

Entity Framework Core 5.0 otras versiones
Producto Versiones
Entity Framework Core 2.1, 2.2, 3.0, 3.1, 5.0

SetAnnotation(String, Annotation, Annotation)

Source:
Annotatable.cs
Source:
Annotatable.cs
Source:
Annotatable.cs

Establece la anotación almacenada en la clave especificada. Sobrescribe la anotación existente si ya existe una anotación con el nombre especificado.

C#
protected virtual Microsoft.EntityFrameworkCore.Infrastructure.Annotation SetAnnotation (string name, Microsoft.EntityFrameworkCore.Infrastructure.Annotation annotation, Microsoft.EntityFrameworkCore.Infrastructure.Annotation oldAnnotation);

Parámetros

name
String

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

annotation
Annotation

Anotación que se va a establecer.

oldAnnotation
Annotation

Anotación que se va a reemplazar.

Devoluciones

Anotación que se estableció.

Se aplica a

Entity Framework Core 5.0 otras versiones
Producto Versiones
Entity Framework Core 3.0, 3.1, 5.0