SerializationExtensionMethods.GetPrimary Method
Gets the primary end of a pair of partnered navigation properties, selecting the principal end if there is one and making a stable, arbitrary choice otherwise.
Namespace: Microsoft.Data.Edm.Csdl
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetPrimary ( _
property As IEdmNavigationProperty _
) As IEdmNavigationProperty
'Usage
Dim property As IEdmNavigationProperty
Dim returnValue As IEdmNavigationProperty
returnValue = property.GetPrimary()
public static IEdmNavigationProperty GetPrimary(
this IEdmNavigationProperty property
)
[ExtensionAttribute]
public:
static IEdmNavigationProperty^ GetPrimary(
IEdmNavigationProperty^ property
)
static member GetPrimary :
property:IEdmNavigationProperty -> IEdmNavigationProperty
public static function GetPrimary(
property : IEdmNavigationProperty
) : IEdmNavigationProperty
Parameters
- property
Type: Microsoft.Data.Edm.IEdmNavigationProperty
The navigation property.
Return Value
Type: Microsoft.Data.Edm.IEdmNavigationProperty
The primary end between the navigation property and its partner.
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.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).