Condividi tramite


CosmosEntityTypeExtensions.SetETagPropertyName Metodo

Definizione

Overload

SetETagPropertyName(IMutableEntityType, String)

Imposta il nome della proprietà utilizzata per archiviare la chiave ETag.

SetETagPropertyName(IConventionEntityType, String, Boolean)

Imposta il nome della proprietà utilizzata per archiviare L'ETag.

SetETagPropertyName(IMutableEntityType, String)

Imposta il nome della proprietà utilizzata per archiviare la chiave 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)

Parametri

entityType
IMutableEntityType

Tipo di entità per impostare il nome della proprietà etag.

name
String

Nome da impostare.

Si applica a

SetETagPropertyName(IConventionEntityType, String, Boolean)

Imposta il nome della proprietà utilizzata per archiviare 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

Parametri

entityType
IConventionEntityType

Tipo di entità per cui impostare il nome della proprietà ETag.

name
String

Nome da impostare.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata usando un'annotazione dati.

Restituisce

Si applica a