IConventionEntityType.FindForeignKeys 方法

定義

多載

FindForeignKeys(IReadOnlyProperty)

取得在指定屬性上定義的外鍵。 只會傳回在確切指定屬性上定義的外鍵。 不會傳回包含指定屬性的複合外鍵。

FindForeignKeys(IReadOnlyList<IReadOnlyProperty>)

取得在指定屬性上定義的外鍵。 只會傳回在確切指定之屬性集上定義的外鍵。

FindForeignKeys(IReadOnlyProperty)

取得在指定屬性上定義的外鍵。 只會傳回在確切指定屬性上定義的外鍵。 不會傳回包含指定屬性的複合外鍵。

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey> FindForeignKeys (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty property);
abstract member FindForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey>
override this.FindForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey>
Public Overridable Function FindForeignKeys (property As IReadOnlyProperty) As IEnumerable(Of IConventionForeignKey)

參數

property
IReadOnlyProperty

要尋找外鍵的 屬性。

傳回

外鍵。

適用於

FindForeignKeys(IReadOnlyList<IReadOnlyProperty>)

取得在指定屬性上定義的外鍵。 只會傳回在確切指定之屬性集上定義的外鍵。

public virtual System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey> 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.IConventionForeignKey>
override this.FindForeignKeys : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey>
Public Overridable Function FindForeignKeys (properties As IReadOnlyList(Of IReadOnlyProperty)) As IEnumerable(Of IConventionForeignKey)

參數

properties
IReadOnlyList<IReadOnlyProperty>

要尋找外鍵的屬性。

傳回

外鍵。

適用於