ActionConfiguration.ReturnsCollectionFromEntitySet Method
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
ReturnsCollectionFromEntitySet<TElementEntityType>(EntitySetConfiguration<TElementEntityType>) | Sets the return type to a collection of entities. |
|
ReturnsCollectionFromEntitySet<TElementEntityType>(String) | Sets the return type to a collection of entities. |
See Also
ActionConfiguration Class
System.Web.Http.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
entitySetConfiguration
Type: System.Web.Http.OData.Builder.EntitySetConfiguration<TElementEntityType>The entity set which contains the returned entities.
Return Value
Type: System.Web.Http.OData.Builder.ActionConfiguration
Type Parameters
- TElementEntityType
The entity type.
Return to top
ActionConfiguration.ReturnsCollectionFromEntitySet<TElementEntityType> Method (String)
Sets the return type to a collection of entities.
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.StringThe name of the entity set which contains the returned entities.
Return Value
Type: System.Web.Http.OData.Builder.ActionConfiguration
Type Parameters
- TElementEntityType
The entity type.
Return to top