MutableEntityTypeExtensions.AddIndex メソッド

定義

このエンティティ型にインデックスを追加します。

public static Microsoft.EntityFrameworkCore.Metadata.IMutableIndex AddIndex (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member AddIndex : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableIndex
<Extension()>
Public Function AddIndex (entityType As IMutableEntityType, property As IMutableProperty) As IMutableIndex

パラメーター

entityType
IMutableEntityType

エンティティの型。

property
IMutableProperty

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

戻り値

新しく作成されたインデックス。

適用対象