Partager via


CosmosEntityTypeExtensions.SetETagPropertyName Méthode

Définition

Surcharges

SetETagPropertyName(IMutableEntityType, String)

Définit le nom de la propriété utilisée pour stocker la clé ETag.

SetETagPropertyName(IConventionEntityType, String, Boolean)

Définit le nom de la propriété utilisée pour stocker l’ETag.

SetETagPropertyName(IMutableEntityType, String)

Définit le nom de la propriété utilisée pour stocker la clé 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)

Paramètres

entityType
IMutableEntityType

Type d’entité pour lequel définir le nom de la propriété etag.

name
String

Nom à définir.

S’applique à

SetETagPropertyName(IConventionEntityType, String, Boolean)

Définit le nom de la propriété utilisée pour stocker l’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

Paramètres

entityType
IConventionEntityType

Type d’entité pour lequel définir le nom de la propriété ETag.

name
String

Nom à définir.

fromDataAnnotation
Boolean

Indique si la configuration a été spécifiée à l’aide d’une annotation de données.

Retours

S’applique à