Compartir a través de


CosmosEntityTypeExtensions.SetETagPropertyName Método

Definición

Sobrecargas

SetETagPropertyName(IMutableEntityType, String)

Establece el nombre de la propiedad que se usa para almacenar la clave ETag.

SetETagPropertyName(IConventionEntityType, String, Boolean)

Establece el nombre de la propiedad que se usa para almacenar la ETag.

SetETagPropertyName(IMutableEntityType, String)

Establece el nombre de la propiedad que se usa para almacenar la clave ETag.

public static void SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
public static void SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? name);
static member SetETagPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetETagPropertyName (entityType As IMutableEntityType, name As String)

Parámetros

entityType
IMutableEntityType

Tipo de entidad para el que se va a establecer el nombre de la propiedad etag.

name
String

Nombre que se establecerá.

Se aplica a

SetETagPropertyName(IConventionEntityType, String, Boolean)

Establece el nombre de la propiedad que se usa para almacenar la ETag.

public static void SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name, bool fromDataAnnotation = false);
public static void SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
public static string? SetETagPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
static member SetETagPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> unit
static member SetETagPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Sub SetETagPropertyName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetETagPropertyName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false) As String

Parámetros

entityType
IConventionEntityType

Tipo de entidad para el que se va a establecer el nombre de la propiedad ETag.

name
String

Nombre que se establecerá.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Devoluciones

Se aplica a