共用方式為


RuntimeEntityType.IEntityType.FindDeclaredForeignKeys 方法

定義

使用指定的屬性,取得在指定的 IEntityType 上宣告的外鍵。

[System.Diagnostics.DebuggerStepThrough]
System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IForeignKey> IEntityType.FindDeclaredForeignKeys (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> properties);
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IEntityType.FindDeclaredForeignKeys : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>
override this.Microsoft.EntityFrameworkCore.Metadata.IEntityType.FindDeclaredForeignKeys : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty> -> seq<Microsoft.EntityFrameworkCore.Metadata.IForeignKey>
Function FindDeclaredForeignKeys (properties As IReadOnlyList(Of IReadOnlyProperty)) As IEnumerable(Of IForeignKey) Implements IEntityType.FindDeclaredForeignKeys

參數

properties
IReadOnlyList<IReadOnlyProperty>

要尋找外鍵的屬性。

傳回

宣告的外鍵。

實作

屬性

適用於