IReadOnlyEntityType.FindForeignKeys 方法

定義

多載

FindForeignKeys(IReadOnlyProperty)

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

FindForeignKeys(IReadOnlyList<IReadOnlyProperty>)

取得在指定屬性上定義的外鍵。 只會傳回剛好在指定屬性集上定義的外鍵。

FindForeignKeys(IReadOnlyProperty)

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

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

參數

property
IReadOnlyProperty

要尋找外鍵的屬性。

傳回

外鍵。

適用於

FindForeignKeys(IReadOnlyList<IReadOnlyProperty>)

取得在指定屬性上定義的外鍵。 只會傳回剛好在指定屬性集上定義的外鍵。

public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey> 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.IReadOnlyForeignKey>
Public Function FindForeignKeys (properties As IReadOnlyList(Of IReadOnlyProperty)) As IEnumerable(Of IReadOnlyForeignKey)

參數

properties
IReadOnlyList<IReadOnlyProperty>

要尋找外鍵的屬性。

傳回

外鍵。

適用於