共用方式為


RuntimeModelConvention.GetKey(IKey, RuntimeEntityType) 方法

定義

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

protected virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeKey GetKey (Microsoft.EntityFrameworkCore.Metadata.IKey key, Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType entityType);
abstract member GetKey : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
override this.GetKey : Microsoft.EntityFrameworkCore.Metadata.IKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType -> Microsoft.EntityFrameworkCore.Metadata.RuntimeKey
Protected Overridable Function GetKey (key As IKey, entityType As RuntimeEntityType) As RuntimeKey

參數

key
IKey

原始索引鍵。

entityType
RuntimeEntityType

宣告實體類型。

傳回

對應的讀取優化索引鍵。

適用於