Aracılığıyla paylaş


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ın ayarlanacağı varlık türü.

name
String

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

Parametreler

entityType
IConventionEntityType

Bölüm anahtarı özellik adının ayarlanacağı varlık türü.

name
String

Ayarlanacağı ad.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmediğinden emin olun.

Döndürülenler

Şunlara uygulanır