IReadOnlyEntityType.GetDeclaredSkipNavigations 方法

定义

获取在此实体类型上声明的所有跳过导航属性。

public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlySkipNavigation> GetDeclaredSkipNavigations ();
abstract member GetDeclaredSkipNavigations : unit -> seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlySkipNavigation>
Public Function GetDeclaredSkipNavigations () As IEnumerable(Of IReadOnlySkipNavigation)

返回

声明跳过导航。

注解

此方法不返回在基类型上声明的 skip 导航属性。 循环访问所有实体类型时,它很有用,以避免多次处理同一外键。 使用 GetSkipNavigations() 还返回基类型上声明的 skip 导航属性。

适用于