MutableEntityTypeExtensions.GetOrAddIndex メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
GetOrAddIndex(IMutableEntityType, IMutableProperty) |
指定されたプロパティで定義されているインデックスを取得するか、まだ定義されていない場合は新しいインデックスを作成します。 |
GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>) |
指定されたプロパティで定義されているインデックスを取得するか、まだ定義されていない場合は新しいインデックスを作成します。 |
GetOrAddIndex(IMutableEntityType, IMutableProperty)
指定されたプロパティで定義されているインデックスを取得するか、まだ定義されていない場合は新しいインデックスを作成します。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableIndex GetOrAddIndex (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member GetOrAddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
<Extension()>
Public Function GetOrAddIndex (entityType As IMutableEntityType, property As IMutableProperty) As IMutableIndex
パラメーター
- entityType
- IMutableEntityType
インデックスを取得または追加するエンティティ型。
- property
- IMutableProperty
インデックスを作成するプロパティ。
戻り値
既存または新しく作成されたインデックス。
適用対象
GetOrAddIndex(IMutableEntityType, IReadOnlyList<IMutableProperty>)
指定されたプロパティで定義されているインデックスを取得するか、まだ定義されていない場合は新しいインデックスを作成します。
public static Microsoft.EntityFrameworkCore.Metadata.IMutableIndex GetOrAddIndex (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
static member GetOrAddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
<Extension()>
Public Function GetOrAddIndex (entityType As IMutableEntityType, properties As IReadOnlyList(Of IMutableProperty)) As IMutableIndex
パラメーター
- entityType
- IMutableEntityType
インデックスを取得または追加するエンティティ型。
- properties
- IReadOnlyList<IMutableProperty>
インデックスを作成するプロパティ。
戻り値
既存または新しく作成されたインデックス。
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework