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关联的导航。

适用于