SingleResult.Create<T>(IQueryable<T>) 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.
Creates a SingleResult<T> from an IQueryable<T>. A helper method to instantiate
a SingleResult<T> object without having to explicitly specify the type
T
.
public static Microsoft.AspNetCore.OData.Results.SingleResult<T> Create<T> (System.Linq.IQueryable<T> queryable);
static member Create : System.Linq.IQueryable<'T> -> Microsoft.AspNetCore.OData.Results.SingleResult<'T>
Public Shared Function Create(Of T) (queryable As IQueryable(Of T)) As SingleResult(Of T)
Type Parameters
- T
The type of the data in the data source.
Parameters
- queryable
- IQueryable<T>
The IQueryable<T> containing zero or one entities.
Returns
The created SingleResult<T>.