IConventionEntityType.FindDeclaredForeignKeys 方法

定義

使用指定的屬性,取得在這個實體類型上宣告的外鍵。

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

參數

properties
IReadOnlyList<IReadOnlyProperty>

要尋找外鍵的屬性。

傳回

宣告的外鍵。

適用於