Share via


ExtensionMethods.TryGetRelativeEntitySetPath Method

Definition

Overloads

TryGetRelativeEntitySetPath(IEdmOperationImport, IEdmModel, IEdmOperationParameter, Dictionary<IEdmNavigationProperty,IEdmPathExpression>, IEnumerable<EdmError>)

Analyzes IEdmOperationImport.EntitySet expression and returns a relative path to an IEdmEntitySet if available. The path starts with the parameter and may have optional sequence of IEdmNavigationProperty and type casts segments.

TryGetRelativeEntitySetPath(IEdmOperation, IEdmModel, IEdmOperationParameter, Dictionary<IEdmNavigationProperty,IEdmPathExpression>, IEdmEntityType, IEnumerable<EdmError>)

Tries to get the relative entity set path.

TryGetRelativeEntitySetPath(IEdmOperationImport, IEdmModel, IEdmOperationParameter, Dictionary<IEdmNavigationProperty,IEdmPathExpression>, IEnumerable<EdmError>)

Analyzes IEdmOperationImport.EntitySet expression and returns a relative path to an IEdmEntitySet if available. The path starts with the parameter and may have optional sequence of IEdmNavigationProperty and type casts segments.

public static bool TryGetRelativeEntitySetPath (this Microsoft.OData.Edm.IEdmOperationImport operationImport, Microsoft.OData.Edm.IEdmModel model, out Microsoft.OData.Edm.IEdmOperationParameter parameter, out System.Collections.Generic.Dictionary<Microsoft.OData.Edm.IEdmNavigationProperty,Microsoft.OData.Edm.IEdmPathExpression> relativeNavigations, out System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.Validation.EdmError> edmErrors);
static member TryGetRelativeEntitySetPath : Microsoft.OData.Edm.IEdmOperationImport * Microsoft.OData.Edm.IEdmModel * IEdmOperationParameter * Dictionary * seq -> bool
<Extension()>
Public Function TryGetRelativeEntitySetPath (operationImport As IEdmOperationImport, model As IEdmModel, ByRef parameter As IEdmOperationParameter, ByRef relativeNavigations As Dictionary(Of IEdmNavigationProperty, IEdmPathExpression), ByRef edmErrors As IEnumerable(Of EdmError)) As Boolean

Parameters

operationImport
IEdmOperationImport

The operation import containing the entity set expression.

model
IEdmModel

The model containing the operation import.

parameter
IEdmOperationParameter

The operation import parameter from which the relative entity set path starts.

relativeNavigations
Dictionary<IEdmNavigationProperty,IEdmPathExpression>

The optional sequence of navigation properties and their path

edmErrors
IEnumerable<EdmError>

The errors that were found when attempting to get the relative path.

Returns

True if the entity set expression of the operationImport contains a relative path an IEdmEntitySet, otherwise false.

Applies to

TryGetRelativeEntitySetPath(IEdmOperation, IEdmModel, IEdmOperationParameter, Dictionary<IEdmNavigationProperty,IEdmPathExpression>, IEdmEntityType, IEnumerable<EdmError>)

Tries to get the relative entity set path.

public static bool TryGetRelativeEntitySetPath (this Microsoft.OData.Edm.IEdmOperation operation, Microsoft.OData.Edm.IEdmModel model, out Microsoft.OData.Edm.IEdmOperationParameter parameter, out System.Collections.Generic.Dictionary<Microsoft.OData.Edm.IEdmNavigationProperty,Microsoft.OData.Edm.IEdmPathExpression> relativeNavigations, out Microsoft.OData.Edm.IEdmEntityType lastEntityType, out System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.Validation.EdmError> errors);
static member TryGetRelativeEntitySetPath : Microsoft.OData.Edm.IEdmOperation * Microsoft.OData.Edm.IEdmModel * IEdmOperationParameter * Dictionary * IEdmEntityType * seq -> bool
<Extension()>
Public Function TryGetRelativeEntitySetPath (operation As IEdmOperation, model As IEdmModel, ByRef parameter As IEdmOperationParameter, ByRef relativeNavigations As Dictionary(Of IEdmNavigationProperty, IEdmPathExpression), ByRef lastEntityType As IEdmEntityType, ByRef errors As IEnumerable(Of EdmError)) As Boolean

Parameters

operation
IEdmOperation

The operation to resolve the entitySet path.

model
IEdmModel

The model.

parameter
IEdmOperationParameter

The parameter.

relativeNavigations
Dictionary<IEdmNavigationProperty,IEdmPathExpression>

The relative navigations and its path.

lastEntityType
IEdmEntityType

Last type of the entity.

errors
IEnumerable<EdmError>

The errors.

Returns

True if a Entity set path is found, false otherwise.

Applies to