IMutableEntityType.FindForeignKeys 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.
Overloads
FindForeignKeys(IReadOnlyProperty) |
Gets the foreign keys defined on the given property. Only foreign keys that are defined on exactly the specified property are returned. Composite foreign keys that include the specified property are not returned. |
FindForeignKeys(IReadOnlyList<IReadOnlyProperty>) |
Gets the foreign keys defined on the given properties. Only foreign keys that are defined on exactly the specified set of properties are returned. |
FindForeignKeys(IReadOnlyProperty)
Gets the foreign keys defined on the given property. Only foreign keys that are defined on exactly the specified property are returned. Composite foreign keys that include the specified property are not returned.
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey> FindForeignKeys (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member FindForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> seq<Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey>
override this.FindForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> seq<Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey>
Public Overridable Function FindForeignKeys (property As IReadOnlyProperty) As IEnumerable(Of IMutableForeignKey)
Parameters
- property
- IReadOnlyProperty
The property to find the foreign keys on.
Returns
The foreign keys.
Applies to
FindForeignKeys(IReadOnlyList<IReadOnlyProperty>)
Gets the foreign keys defined on the given properties. Only foreign keys that are defined on exactly the specified set of properties are returned.
public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey> FindForeignKeys (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
abstract member FindForeignKeys : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey>
override this.FindForeignKeys : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey>
Public Overridable Function FindForeignKeys (properties As IReadOnlyList(Of IReadOnlyProperty)) As IEnumerable(Of IMutableForeignKey)
Parameters
- properties
- IReadOnlyList<IReadOnlyProperty>
The properties to find the foreign keys on.
Returns
The foreign keys.
Applies to
Entity Framework