Share via


ActionConfiguration.ReturnsCollectionFromEntitySet Method

 

Sets the return type to a collection of entities.

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

Overload List

Name Description
System_CAPS_pubmethod ReturnsCollectionFromEntitySet<TElementEntityType>(EntitySetConfiguration<TElementEntityType>)

Sets the return type to a collection of entities.

System_CAPS_pubmethod ReturnsCollectionFromEntitySet<TElementEntityType>(String)

Sets the return type to a collection of EntityType instances.

See Also

ActionConfiguration Class
System.Web.OData.Builder Namespace

Return to top

ActionConfiguration.ReturnsCollectionFromEntitySet<TElementEntityType> Method (EntitySetConfiguration<TElementEntityType>)

Sets the return type to a collection of entities.

Syntax

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

Parameters

Return Value

Type: System.Web.OData.Builder.ActionConfiguration

Returns ActionConfiguration.

Type Parameters

  • TElementEntityType
    The entity type.

Return to top

ActionConfiguration.ReturnsCollectionFromEntitySet<TElementEntityType> Method (String)

Sets the return type to a collection of EntityType instances.

Syntax

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

Parameters

  • entitySetName
    Type: System.String

    The entitySetName which contains the returned EntityType instances

Return Value

Type: System.Web.OData.Builder.ActionConfiguration

The return type of this ActionConfiguration.

Type Parameters

  • TElementEntityType
    The type that is an EntityType

Return to top