共用方式為


RuntimeModelConvention.GetIndex(IIndex, RuntimeEntityType) 方法

定義

取得讀取優化模型中的對應索引。

protected virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex GetIndex (Microsoft.EntityFrameworkCore.Metadata.IIndex index, Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType entityType);
abstract member GetIndex : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
override this.GetIndex : Microsoft.EntityFrameworkCore.Metadata.IIndex * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType -> Microsoft.EntityFrameworkCore.Metadata.RuntimeIndex
Protected Overridable Function GetIndex (index As IIndex, entityType As RuntimeEntityType) As RuntimeIndex

參數

index
IIndex

原始索引。

entityType
RuntimeEntityType

宣告實體類型。

傳回

對應的讀取優化索引。

適用於