Udostępnij za pośrednictwem


CosmosEntityTypeExtensions.SetETagPropertyName Metoda

Definicja

Przeciążenia

SetETagPropertyName(IMutableEntityType, String)

Ustawia nazwę właściwości używanej do przechowywania klucza ETag.

SetETagPropertyName(IConventionEntityType, String, Boolean)

Ustawia nazwę właściwości używanej do przechowywania elementu ETag.

SetETagPropertyName(IMutableEntityType, String)

Ustawia nazwę właściwości używanej do przechowywania klucza 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 jednostki do ustawienia nazwy właściwości etag.

name
String

Nazwa do ustawienia.

Dotyczy

SetETagPropertyName(IConventionEntityType, String, Boolean)

Ustawia nazwę właściwości używanej do przechowywania elementu 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 jednostki do ustawienia nazwy właściwości ETag.

name
String

Nazwa do ustawienia.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Dotyczy