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

声明实体类型。

返回

相应的读取优化索引。

适用于