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
- propertyName
Type: System.String
The navigation property name.
- propertyType
Type: Microsoft.Data.Edm.IEdmTypeReference
Type of the navigation property.
- dependentProperties
Type: System.Collections.Generic.IEnumerable<IEdmStructuralProperty>
The dependent properties of the navigation source.
- containsTarget
Type: System.Boolean
A value indicating whether the navigation source logically contains the navigation target.
- onDelete
Type: Microsoft.Data.Edm.EdmOnDeleteAction
An action to take upon deletion of an instance of the navigation source.
- partnerPropertyName
Type: System.String
The navigation partner property name.
- partnerPropertyType
Type: Microsoft.Data.Edm.IEdmTypeReference
Type of the navigation partner property.
- partnerDependentProperties
Type: System.Collections.Generic.IEnumerable<IEdmStructuralProperty>
The dependent properties of the navigation target.
- partnerContainsTarget
Type: System.Boolean
A value indicating whether the navigation target logically contains the navigation source.
- partnerOnDelete
Type: Microsoft.Data.Edm.EdmOnDeleteAction
The action to take upon deletion of an instance of the navigation target.
Return Value
Type: Microsoft.Data.Edm.Library.EdmNavigationProperty
The navigation property.