ConventionEntityTypeExtensions.FindDeclaredForeignKeys 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 foreign keys declared on the given IConventionEntityType using the given properties.
public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey> FindDeclaredForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties);
static member FindDeclaredForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey>
<Extension()>
Public Function FindDeclaredForeignKeys (entityType As IConventionEntityType, properties As IReadOnlyList(Of IProperty)) As IEnumerable(Of IConventionForeignKey)
Parameters
- entityType
- IConventionEntityType
The entity type.
- properties
- IReadOnlyList<IProperty>
The properties to find the foreign keys on.
Returns
Declared foreign keys.
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