获取声明的导航属性。
命名空间: Microsoft.Data.Edm
程序集: Microsoft.Data.Edm(在 Microsoft.Data.Edm.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Function DeclaredNavigationProperties ( _
type As IEdmEntityTypeReference _
) As IEnumerable(Of IEdmNavigationProperty)
用法
Dim type As IEdmEntityTypeReference
Dim returnValue As IEnumerable(Of IEdmNavigationProperty)
returnValue = type.DeclaredNavigationProperties()
public static IEnumerable<IEdmNavigationProperty> DeclaredNavigationProperties(
this IEdmEntityTypeReference type
)
[ExtensionAttribute]
public:
static IEnumerable<IEdmNavigationProperty^>^ DeclaredNavigationProperties(
IEdmEntityTypeReference^ type
)
static member DeclaredNavigationProperties :
type:IEdmEntityTypeReference -> IEnumerable<IEdmNavigationProperty>
public static function DeclaredNavigationProperties(
type : IEdmEntityTypeReference
) : IEnumerable<IEdmNavigationProperty>
参数
- type
类型:Microsoft.Data.Edm.IEdmEntityTypeReference
实体类型的引用。
返回值
类型:System.Collections.Generic.IEnumerable<IEdmNavigationProperty>
声明的导航属性的集合。
用法说明
在 Visual Basic 和 C# 中,您可以对 IEdmEntityTypeReference 类型的任何对象将此方法作为实例方法调用。在您使用实例方法语法调用此方法时,将忽略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.103)或https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.103)。