Bagikan melalui


ExtensionMethods.TryGetRelativeEntitySetPath Method

Analyzes IEdmFunctionImport.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.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function TryGetRelativeEntitySetPath ( _
    functionImport As IEdmFunctionImport, _
    model As IEdmModel, _
    <OutAttribute> ByRef parameter As IEdmFunctionParameter, _
    <OutAttribute> ByRef path As IEnumerable(Of IEdmNavigationProperty) _
) As Boolean
'Usage
Dim functionImport As IEdmFunctionImport 
Dim model As IEdmModel 
Dim parameter As IEdmFunctionParameter 
Dim path As IEnumerable(Of IEdmNavigationProperty)
Dim returnValue As Boolean 

returnValue = functionImport.TryGetRelativeEntitySetPath(model, _
    parameter, path)
public static bool TryGetRelativeEntitySetPath(
    this IEdmFunctionImport functionImport,
    IEdmModel model,
    out IEdmFunctionParameter parameter,
    out IEnumerable<IEdmNavigationProperty> path
)
[ExtensionAttribute]
public:
static bool TryGetRelativeEntitySetPath(
    IEdmFunctionImport^ functionImport, 
    IEdmModel^ model, 
    [OutAttribute] IEdmFunctionParameter^% parameter, 
    [OutAttribute] IEnumerable<IEdmNavigationProperty^>^% path
)
static member TryGetRelativeEntitySetPath : 
        functionImport:IEdmFunctionImport * 
        model:IEdmModel * 
        parameter:IEdmFunctionParameter byref * 
        path:IEnumerable<IEdmNavigationProperty> byref -> bool
public static function TryGetRelativeEntitySetPath(
    functionImport : IEdmFunctionImport, 
    model : IEdmModel, 
    parameter : IEdmFunctionParameter, 
    path : IEnumerable<IEdmNavigationProperty>
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the entity set expression of the functionImport contains a relative path an IEdmEntitySet; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmFunctionImport. 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).

See Also

Reference

ExtensionMethods Class

Microsoft.Data.Edm Namespace