CosmosEntityTypeExtensions.SetETagPropertyName Yöntem

Tanım

Aşırı Yüklemeler

SetETagPropertyName(IMutableEntityType, String)

ETag anahtarını depolamak için kullanılan özelliğin adını ayarlar.

SetETagPropertyName(IConventionEntityType, String, Boolean)

ETag'i depolamak için kullanılan özelliğin adını ayarlar.

SetETagPropertyName(IMutableEntityType, String)

ETag anahtarını depolamak için kullanılan özelliğin adını ayarlar.

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)

Parametreler

entityType
IMutableEntityType

etag özelliğinin adını ayarlamak için varlık türü.

name
String

Ayar için ad.

Şunlara uygulanır

SetETagPropertyName(IConventionEntityType, String, Boolean)

ETag'i depolamak için kullanılan özelliğin adını ayarlar.

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);
static member SetETagPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> unit
<Extension()>
Public Sub SetETagPropertyName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false)

Parametreler

entityType
IConventionEntityType

ETag özellik adını ayarlamak için varlık türü.

name
String

Ayar için ad.

fromDataAnnotation
Boolean

Yapılandırmanın veri ek açıklaması kullanılarak belirtilmemiş olup olmadığını gösterir.

Şunlara uygulanır