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