IEntityType.GetDeclaredSkipNavigations 方法

定义

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

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

返回

声明的外键。

注解

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

适用于