NavigationExtensions.FindInverse(INavigation) 方法

定义

注意

Use INavigation.Inverse

注意

Use IReadOnlyNavigation.Inverse

获取关系另一端的导航属性。 如果在关系的另一端没有定义导航属性,则返回 null。

public static Microsoft.EntityFrameworkCore.Metadata.INavigation FindInverse (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
[System.Diagnostics.DebuggerStepThrough]
public static Microsoft.EntityFrameworkCore.Metadata.INavigation FindInverse (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use INavigation.Inverse")]
public static Microsoft.EntityFrameworkCore.Metadata.INavigation FindInverse (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
[System.Diagnostics.DebuggerStepThrough]
[System.Obsolete("Use IReadOnlyNavigation.Inverse")]
public static Microsoft.EntityFrameworkCore.Metadata.INavigation? FindInverse (this Microsoft.EntityFrameworkCore.Metadata.INavigation navigation);
static member FindInverse : Microsoft.EntityFrameworkCore.Metadata.INavigation -> Microsoft.EntityFrameworkCore.Metadata.INavigation
[<System.Diagnostics.DebuggerStepThrough>]
static member FindInverse : Microsoft.EntityFrameworkCore.Metadata.INavigation -> Microsoft.EntityFrameworkCore.Metadata.INavigation
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use INavigation.Inverse")>]
static member FindInverse : Microsoft.EntityFrameworkCore.Metadata.INavigation -> Microsoft.EntityFrameworkCore.Metadata.INavigation
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Obsolete("Use IReadOnlyNavigation.Inverse")>]
static member FindInverse : Microsoft.EntityFrameworkCore.Metadata.INavigation -> Microsoft.EntityFrameworkCore.Metadata.INavigation
<Extension()>
Public Function FindInverse (navigation As INavigation) As INavigation

参数

navigation
INavigation

要查找 的反的 导航属性。

返回

反导航,如果未定义,则为 。null

属性

适用于