Sdílet prostřednictvím


CosmosEntityTypeExtensions.SetETagPropertyName Metoda

Definice

Přetížení

SetETagPropertyName(IMutableEntityType, String)

Nastaví název vlastnosti, která se používá k uložení klíče ETag.

SetETagPropertyName(IConventionEntityType, String, Boolean)

Nastaví název vlastnosti, která se používá k uložení značky ETag.

SetETagPropertyName(IMutableEntityType, String)

Nastaví název vlastnosti, která se používá k uložení klíče 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)

Parametry

entityType
IMutableEntityType

Typ entity, pro který chcete nastavit název vlastnosti etag.

name
String

Název, který chcete nastavit.

Platí pro

SetETagPropertyName(IConventionEntityType, String, Boolean)

Nastaví název vlastnosti, která se používá k uložení značky 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

Parametry

entityType
IConventionEntityType

Typ entity, pro který chcete nastavit název vlastnosti značky ETag.

name
String

Název, který chcete nastavit.

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

Platí pro