Delen via


EdmNavigationProperty.CreateNavigationPropertyWithPartner Method

Definition

Overloads

CreateNavigationPropertyWithPartner(EdmNavigationPropertyInfo, EdmNavigationPropertyInfo)

Creates two navigation properties representing an association between two entity types.

CreateNavigationPropertyWithPartner(String, IEdmTypeReference, IEnumerable<IEdmStructuralProperty>, IEnumerable<IEdmStructuralProperty>, Boolean, EdmOnDeleteAction, String, IEdmTypeReference, IEnumerable<IEdmStructuralProperty>, IEnumerable<IEdmStructuralProperty>, Boolean, EdmOnDeleteAction)

Creates two navigation properties representing an association between two entity types.

CreateNavigationPropertyWithPartner(EdmNavigationPropertyInfo, EdmNavigationPropertyInfo)

Creates two navigation properties representing an association between two entity types.

public static Microsoft.OData.Edm.EdmNavigationProperty CreateNavigationPropertyWithPartner (Microsoft.OData.Edm.EdmNavigationPropertyInfo propertyInfo, Microsoft.OData.Edm.EdmNavigationPropertyInfo partnerInfo);
static member CreateNavigationPropertyWithPartner : Microsoft.OData.Edm.EdmNavigationPropertyInfo * Microsoft.OData.Edm.EdmNavigationPropertyInfo -> Microsoft.OData.Edm.EdmNavigationProperty
Public Shared Function CreateNavigationPropertyWithPartner (propertyInfo As EdmNavigationPropertyInfo, partnerInfo As EdmNavigationPropertyInfo) As EdmNavigationProperty

Parameters

propertyInfo
EdmNavigationPropertyInfo

Information to create the navigation property.

partnerInfo
EdmNavigationPropertyInfo

Information to create the partner navigation property.

Returns

Created navigation property.

Applies to

CreateNavigationPropertyWithPartner(String, IEdmTypeReference, IEnumerable<IEdmStructuralProperty>, IEnumerable<IEdmStructuralProperty>, Boolean, EdmOnDeleteAction, String, IEdmTypeReference, IEnumerable<IEdmStructuralProperty>, IEnumerable<IEdmStructuralProperty>, Boolean, EdmOnDeleteAction)

Creates two navigation properties representing an association between two entity types.

public static Microsoft.OData.Edm.EdmNavigationProperty CreateNavigationPropertyWithPartner (string propertyName, Microsoft.OData.Edm.IEdmTypeReference propertyType, System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.IEdmStructuralProperty> dependentProperties, System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.IEdmStructuralProperty> principalProperties, bool containsTarget, Microsoft.OData.Edm.EdmOnDeleteAction onDelete, string partnerPropertyName, Microsoft.OData.Edm.IEdmTypeReference partnerPropertyType, System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.IEdmStructuralProperty> partnerDependentProperties, System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.IEdmStructuralProperty> partnerPrincipalProperties, bool partnerContainsTarget, Microsoft.OData.Edm.EdmOnDeleteAction partnerOnDelete);
static member CreateNavigationPropertyWithPartner : string * Microsoft.OData.Edm.IEdmTypeReference * seq<Microsoft.OData.Edm.IEdmStructuralProperty> * seq<Microsoft.OData.Edm.IEdmStructuralProperty> * bool * Microsoft.OData.Edm.EdmOnDeleteAction * string * Microsoft.OData.Edm.IEdmTypeReference * seq<Microsoft.OData.Edm.IEdmStructuralProperty> * seq<Microsoft.OData.Edm.IEdmStructuralProperty> * bool * Microsoft.OData.Edm.EdmOnDeleteAction -> Microsoft.OData.Edm.EdmNavigationProperty
Public Shared Function CreateNavigationPropertyWithPartner (propertyName As String, propertyType As IEdmTypeReference, dependentProperties As IEnumerable(Of IEdmStructuralProperty), principalProperties As IEnumerable(Of IEdmStructuralProperty), containsTarget As Boolean, onDelete As EdmOnDeleteAction, partnerPropertyName As String, partnerPropertyType As IEdmTypeReference, partnerDependentProperties As IEnumerable(Of IEdmStructuralProperty), partnerPrincipalProperties As IEnumerable(Of IEdmStructuralProperty), partnerContainsTarget As Boolean, partnerOnDelete As EdmOnDeleteAction) As EdmNavigationProperty

Parameters

propertyName
String

Navigation property name.

propertyType
IEdmTypeReference

Type of the navigation property.

dependentProperties
IEnumerable<IEdmStructuralProperty>

Dependent properties of the navigation source.

principalProperties
IEnumerable<IEdmStructuralProperty>

Principal properties of the navigation source.

containsTarget
Boolean

A value indicating whether the navigation source logically contains the navigation target.

onDelete
EdmOnDeleteAction

Action to take upon deletion of an instance of the navigation source.

partnerPropertyName
String

Navigation partner property name.

partnerPropertyType
IEdmTypeReference

Type of the navigation partner property.

partnerDependentProperties
IEnumerable<IEdmStructuralProperty>

Dependent properties of the navigation target.

partnerPrincipalProperties
IEnumerable<IEdmStructuralProperty>

Principal properties of the navigation target.

partnerContainsTarget
Boolean

A value indicating whether the navigation target logically contains the navigation source.

partnerOnDelete
EdmOnDeleteAction

Action to take upon deletion of an instance of the navigation target.

Returns

Navigation property.

Applies to