ActionConfiguration.ReturnsFromEntitySet Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
ReturnsFromEntitySet<TEntityType>(EntitySetConfiguration<TEntityType>)
Sets the return type to a single EntityType instance.
public Microsoft.AspNet.OData.Builder.ActionConfiguration ReturnsFromEntitySet<TEntityType> (Microsoft.AspNet.OData.Builder.EntitySetConfiguration<TEntityType> entitySetConfiguration) where TEntityType : class;
member this.ReturnsFromEntitySet : Microsoft.AspNet.OData.Builder.EntitySetConfiguration<'EntityType (requires 'EntityType : null)> -> Microsoft.AspNet.OData.Builder.ActionConfiguration (requires 'EntityType : null)
Public Function ReturnsFromEntitySet(Of TEntityType As Class) (entitySetConfiguration As EntitySetConfiguration(Of TEntityType)) As ActionConfiguration
Type Parameters
- TEntityType
The type that is an EntityType
Parameters
- entitySetConfiguration
- EntitySetConfiguration<TEntityType>
The entity set which contains the returned entity.
Returns
Applies to
ReturnsFromEntitySet<TEntityType>(String)
Sets the return type to a single EntityType instance.
public Microsoft.AspNet.OData.Builder.ActionConfiguration ReturnsFromEntitySet<TEntityType> (string entitySetName) where TEntityType : class;
member this.ReturnsFromEntitySet : string -> Microsoft.AspNet.OData.Builder.ActionConfiguration (requires 'EntityType : null)
Public Function ReturnsFromEntitySet(Of TEntityType As Class) (entitySetName As String) As ActionConfiguration
Type Parameters
- TEntityType
The type that is an EntityType
Parameters
- entitySetName
- String
The name of the entity set which contains the returned entity.