CosmosEntityTypeExtensions.SetPartitionKeyPropertyName Yöntem

Tanım

Aşırı Yüklemeler

SetPartitionKeyPropertyName(IMutableEntityType, String)

Bölüm anahtarı anahtarını depolamak için kullanılan özelliğin adını ayarlar.

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

Bölüm anahtarını depolamak için kullanılan özelliğin adını ayarlar.

SetPartitionKeyPropertyName(IMutableEntityType, String)

Bölüm anahtarı anahtarını depolamak için kullanılan özelliğin adını ayarlar.

public static void SetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
public static void SetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? name);
static member SetPartitionKeyPropertyName : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetPartitionKeyPropertyName (entityType As IMutableEntityType, name As String)

Parametreler

entityType
IMutableEntityType

Bölüm anahtarı özellik adını ayarlamak için varlık türü.

name
String

Ayar için ad.

Şunlara uygulanır

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

Bölüm anahtarını depolamak için kullanılan özelliğin adını ayarlar.

public static void SetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string name, bool fromDataAnnotation = false);
public static void SetPartitionKeyPropertyName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? name, bool fromDataAnnotation = false);
static member SetPartitionKeyPropertyName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> unit
<Extension()>
Public Sub SetPartitionKeyPropertyName (entityType As IConventionEntityType, name As String, Optional fromDataAnnotation As Boolean = false)

Parametreler

entityType
IConventionEntityType

Bölüm anahtarı ö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