次の方法で共有


CosmosEntityTypeExtensions.SetPartitionKeyPropertyName メソッド

定義

オーバーロード

SetPartitionKeyPropertyName(IMutableEntityType, String)

パーティション キーの格納に使用するプロパティの名前を設定します。

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

パーティション キーの格納に使用するプロパティの名前を設定します。

SetPartitionKeyPropertyName(IMutableEntityType, String)

パーティション キーの格納に使用するプロパティの名前を設定します。

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)

パラメーター

entityType
IMutableEntityType

パーティション キー のプロパティ名を設定するエンティティ型。

name
String

設定する名前。

適用対象

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

パーティション キーの格納に使用するプロパティの名前を設定します。

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

パラメーター

entityType
IConventionEntityType

パーティション キー のプロパティ名を設定するエンティティ型。

name
String

設定する名前。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

適用対象