RuntimeModelConvention.GetForeignKey(IForeignKey, 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 foreign key in the read-optimized model.
protected virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey GetForeignKey (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey, Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType entityType);
abstract member GetForeignKey : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType -> Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey
override this.GetForeignKey : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType -> Microsoft.EntityFrameworkCore.Metadata.RuntimeForeignKey
Protected Overridable Function GetForeignKey (foreignKey As IForeignKey, entityType As RuntimeEntityType) As RuntimeForeignKey
Parameters
- foreignKey
- IForeignKey
The original foreign key.
- entityType
- RuntimeEntityType
The declaring entity type.
Returns
The corresponding read-optimized foreign key.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework