Share via


FunctionConfiguration.ReturnsEntityViaEntitySetPath Method

 

Sets the return type to a single EntityType instance.

Namespace:   System.Web.OData.Builder
Assembly:  System.Web.OData (in System.Web.OData.dll)

Overload List

Name Description
System_CAPS_pubmethod ReturnsEntityViaEntitySetPath<TEntityType>(String)

Sets the return type to a single EntityType instance.

System_CAPS_pubmethod ReturnsEntityViaEntitySetPath<TEntityType>(String[])

Sets the return type to a single EntityType instance.

See Also

FunctionConfiguration Class
System.Web.OData.Builder Namespace

Return to top

FunctionConfiguration.ReturnsEntityViaEntitySetPath<TEntityType> Method (String)

Sets the return type to a single EntityType instance.

Syntax

public FunctionConfiguration ReturnsEntityViaEntitySetPath<TEntityType>(
    string entitySetPath
)
where TEntityType : class
public:
generic<typename TEntityType>
where TEntityType : ref class
FunctionConfiguration^ ReturnsEntityViaEntitySetPath(
    String^ entitySetPath
)
member ReturnsEntityViaEntitySetPath<'TEntityType when 'TEntityType : not struct> : 
        entitySetPath:string -> FunctionConfiguration
Public Function ReturnsEntityViaEntitySetPath(Of TEntityType As Class) (
    entitySetPath As String
) As FunctionConfiguration

Parameters

  • entitySetPath
    Type: System.String

    The entitySetPath which contains the return EntityType instance

Return Value

Type: System.Web.OData.Builder.FunctionConfiguration

Returns FunctionConfiguration.

Type Parameters

  • TEntityType
    The type that is an EntityType

Return to top

FunctionConfiguration.ReturnsEntityViaEntitySetPath<TEntityType> Method (String[])

Sets the return type to a single EntityType instance.

Syntax

public FunctionConfiguration ReturnsEntityViaEntitySetPath<TEntityType>(
    params string[] entitySetPath
)
where TEntityType : class
public:
generic<typename TEntityType>
where TEntityType : ref class
FunctionConfiguration^ ReturnsEntityViaEntitySetPath(
    ... array<String^>^ entitySetPath
)
member ReturnsEntityViaEntitySetPath<'TEntityType when 'TEntityType : not struct> : 
        [<ParamArrayAttribute>] entitySetPath:string[] -> FunctionConfiguration
Public Function ReturnsEntityViaEntitySetPath(Of TEntityType As Class) (
    ParamArray entitySetPath As String()
) As FunctionConfiguration

Parameters

  • entitySetPath
    Type: System.String[]

    The entitySetPath which contains the return EntityType instance

Return Value

Type: System.Web.OData.Builder.FunctionConfiguration

Returns FunctionConfiguration.

Type Parameters

  • TEntityType
    The type that is an EntityType

Return to top