Share via


ActionConfiguration.ReturnsFromEntitySet 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 ReturnsFromEntitySet<TEntityType>(EntitySetConfiguration<TEntityType>)

Sets the return type to a single EntityType instance.

System_CAPS_pubmethod ReturnsFromEntitySet<TEntityType>(String)

Sets the return type to a single EntityType instance.

See Also

ActionConfiguration Class
System.Web.OData.Builder Namespace

Return to top

ActionConfiguration.ReturnsFromEntitySet<TEntityType> Method (EntitySetConfiguration<TEntityType>)

Sets the return type to a single EntityType instance.

Syntax

public ActionConfiguration ReturnsFromEntitySet<TEntityType>(
    EntitySetConfiguration<TEntityType> entitySetConfiguration
)
where TEntityType : class
public:
generic<typename TEntityType>
where TEntityType : ref class
ActionConfiguration^ ReturnsFromEntitySet(
    EntitySetConfiguration<TEntityType>^ entitySetConfiguration
)
member ReturnsFromEntitySet<'TEntityType when 'TEntityType : not struct> : 
        entitySetConfiguration:EntitySetConfiguration<'TEntityType> -> ActionConfiguration
Public Function ReturnsFromEntitySet(Of TEntityType As Class) (
    entitySetConfiguration As EntitySetConfiguration(Of TEntityType)
) As ActionConfiguration

Parameters

Return Value

Type: System.Web.OData.Builder.ActionConfiguration

Returns ActionConfiguration.

Type Parameters

  • TEntityType
    The type that is an EntityType.

Return to top

ActionConfiguration.ReturnsFromEntitySet<TEntityType> Method (String)

Sets the return type to a single EntityType instance.

Syntax

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

Parameters

  • entitySetName
    Type: System.String

    The entitySetName which contains the return EntityType instance

Return Value

Type: System.Web.OData.Builder.ActionConfiguration

The return type of this ActionConfiguration.

Type Parameters

  • TEntityType
    The type that is an EntityType

Return to top