CosmosEntityTypeExtensions.SetETagPropertyName Methode

Definition

Überlädt

SetETagPropertyName(IMutableEntityType, String)

Legt den Namen der Eigenschaft fest, die zum Speichern des ETag-Schlüssels verwendet wird.

SetETagPropertyName(IConventionEntityType, String, Boolean)

Legt den Namen der Eigenschaft fest, die zum Speichern des ETags verwendet wird.

SetETagPropertyName(IMutableEntityType, String)

Legt den Namen der Eigenschaft fest, die zum Speichern des ETag-Schlüssels verwendet wird.

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)

Parameter

entityType
IMutableEntityType

Der Entitätstyp, für den der Name der etag-Eigenschaft festgelegt werden soll.

name
String

Der Name, der festgelegt werden soll.

Gilt für:

SetETagPropertyName(IConventionEntityType, String, Boolean)

Legt den Namen der Eigenschaft fest, die zum Speichern des ETags verwendet wird.

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

Parameter

entityType
IConventionEntityType

Der Entitätstyp, für den der ETag-Eigenschaftsname festgelegt werden soll.

name
String

Der Name, der festgelegt werden soll.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Gilt für: