MutableEntityTypeExtensions.GetOrAddIndex メソッド

定義

オーバーロード

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>

インデックスを作成するプロパティ。

戻り値

既存または新しく作成されたインデックス。

適用対象