ExtensionMethods.DeclaringEntityType Method

Gets the entity type declaring this navigation property.

Namespace:  Microsoft.Data.Edm
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)


<ExtensionAttribute> _
Public Shared Function DeclaringEntityType ( _
    property As IEdmNavigationProperty _
) As IEdmEntityType
Dim property As IEdmNavigationProperty 
Dim returnValue As IEdmEntityType 

returnValue = property.DeclaringEntityType()
public static IEdmEntityType DeclaringEntityType(
    this IEdmNavigationProperty property
static IEdmEntityType^ DeclaringEntityType(
    IEdmNavigationProperty^ property
static member DeclaringEntityType : 
        property:IEdmNavigationProperty -> IEdmEntityType
public static function DeclaringEntityType(
    property : IEdmNavigationProperty
) : IEdmEntityType


Return Value

Type: Microsoft.Data.Edm.IEdmEntityType
The entity type that declares this navigation property.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmNavigationProperty. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).

See Also


ExtensionMethods Class

Microsoft.Data.Edm Namespace