RuntimeModelConvention.GetKey(IKey, RuntimeEntityType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the corresponding key in the read-optimized model.
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
Parameters
- key
- IKey
The original key.
- entityType
- RuntimeEntityType
The declaring entity type.
Returns
The corresponding read-optimized key.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework