共用方式為


MutableForeignKeyExtensions.GetNavigation(IMutableForeignKey, Boolean) 方法

定義

傳回與此外鍵相關聯的導覽。

public static Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation GetNavigation (this Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey, bool pointsToPrincipal);
static member GetNavigation : Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableNavigation
<Extension()>
Public Function GetNavigation (foreignKey As IMutableForeignKey, pointsToPrincipal As Boolean) As IMutableNavigation

參數

foreignKey
IMutableForeignKey

外部索引鍵。

pointsToPrincipal
Boolean

值,指出巡覽是否位於指向主體類型的相依型別上。

傳回

與這個外鍵或 null 相關聯的導覽。

適用於