Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 | |
|---|---|---|
![]() |
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.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.OData.Builder.EntitySetConfiguration<TEntityType>The entity set which contains the returned entity.
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.StringThe 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
.jpeg)