CosmosEntityTypeExtensions.SetPartitionKeyPropertyName メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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
構成がデータ注釈を使用して指定されたかどうかを示します。
戻り値
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework