MutablePropertyExtensions.GetContainingForeignKeys(IMutableProperty) 方法

定義

取得使用此屬性的所有外鍵, (包括包含此屬性的複合外鍵) 。

public static System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey> GetContainingForeignKeys (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member GetContainingForeignKeys : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> seq<Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey>
<Extension()>
Public Function GetContainingForeignKeys (property As IMutableProperty) As IEnumerable(Of IMutableForeignKey)

參數

property
IMutableProperty

要為其取得外鍵的屬性。

傳回

使用此屬性的外鍵。

適用於