Share via


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

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

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

Syntax

'Declaration
Public Shared Function CreateNavigationPropertyWithPartner ( _
    propertyName As String, _
    propertyType As IEdmTypeReference, _
    dependentProperties As IEnumerable(Of IEdmStructuralProperty), _
    containsTarget As Boolean, _
    onDelete As EdmOnDeleteAction, _
    partnerPropertyName As String, _
    partnerPropertyType As IEdmTypeReference, _
    partnerDependentProperties As IEnumerable(Of IEdmStructuralProperty), _
    partnerContainsTarget As Boolean, _
    partnerOnDelete As EdmOnDeleteAction _
) As EdmNavigationProperty
'Usage
Dim propertyName As String 
Dim propertyType As IEdmTypeReference 
Dim dependentProperties As IEnumerable(Of IEdmStructuralProperty)
Dim containsTarget As Boolean 
Dim onDelete As EdmOnDeleteAction 
Dim partnerPropertyName As String 
Dim partnerPropertyType As IEdmTypeReference 
Dim partnerDependentProperties As IEnumerable(Of IEdmStructuralProperty)
Dim partnerContainsTarget As Boolean 
Dim partnerOnDelete As EdmOnDeleteAction 
Dim returnValue As EdmNavigationProperty 

returnValue = EdmNavigationProperty.CreateNavigationPropertyWithPartner(propertyName, _
    propertyType, dependentProperties, _
    containsTarget, onDelete, partnerPropertyName, _
    partnerPropertyType, partnerDependentProperties, _
    partnerContainsTarget, partnerOnDelete)
public static EdmNavigationProperty CreateNavigationPropertyWithPartner(
    string propertyName,
    IEdmTypeReference propertyType,
    IEnumerable<IEdmStructuralProperty> dependentProperties,
    bool containsTarget,
    EdmOnDeleteAction onDelete,
    string partnerPropertyName,
    IEdmTypeReference partnerPropertyType,
    IEnumerable<IEdmStructuralProperty> partnerDependentProperties,
    bool partnerContainsTarget,
    EdmOnDeleteAction partnerOnDelete
)
public:
static EdmNavigationProperty^ CreateNavigationPropertyWithPartner(
    String^ propertyName, 
    IEdmTypeReference^ propertyType, 
    IEnumerable<IEdmStructuralProperty^>^ dependentProperties, 
    bool containsTarget, 
    EdmOnDeleteAction onDelete, 
    String^ partnerPropertyName, 
    IEdmTypeReference^ partnerPropertyType, 
    IEnumerable<IEdmStructuralProperty^>^ partnerDependentProperties, 
    bool partnerContainsTarget, 
    EdmOnDeleteAction partnerOnDelete
)
static member CreateNavigationPropertyWithPartner : 
        propertyName:string * 
        propertyType:IEdmTypeReference * 
        dependentProperties:IEnumerable<IEdmStructuralProperty> * 
        containsTarget:bool * 
        onDelete:EdmOnDeleteAction * 
        partnerPropertyName:string * 
        partnerPropertyType:IEdmTypeReference * 
        partnerDependentProperties:IEnumerable<IEdmStructuralProperty> * 
        partnerContainsTarget:bool * 
        partnerOnDelete:EdmOnDeleteAction -> EdmNavigationProperty
public static function CreateNavigationPropertyWithPartner(
    propertyName : String, 
    propertyType : IEdmTypeReference, 
    dependentProperties : IEnumerable<IEdmStructuralProperty>, 
    containsTarget : boolean, 
    onDelete : EdmOnDeleteAction, 
    partnerPropertyName : String, 
    partnerPropertyType : IEdmTypeReference, 
    partnerDependentProperties : IEnumerable<IEdmStructuralProperty>, 
    partnerContainsTarget : boolean, 
    partnerOnDelete : EdmOnDeleteAction
) : EdmNavigationProperty

Parameters

  • containsTarget
    Type: System.Boolean
    A value indicating whether the navigation source logically contains the navigation target.
  • partnerPropertyName
    Type: System.String
    The navigation partner property name.
  • partnerContainsTarget
    Type: System.Boolean
    A value indicating whether the navigation target logically contains the navigation source.

Return Value

Type: Microsoft.Data.Edm.Library.EdmNavigationProperty
The navigation property.

See Also

Reference

EdmNavigationProperty Class

CreateNavigationPropertyWithPartner Overload

Microsoft.Data.Edm.Library Namespace