SingleResult.Create<T> Method (IQueryable<T>)
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.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public static SingleResult<T> Create<T>(
IQueryable<T> queryable
)
public:
generic<typename T>
static SingleResult<T>^ Create(
IQueryable<T>^ queryable
)
static member Create<'T> :
queryable:IQueryable<'T> -> SingleResult<'T>
Public Shared Function Create(Of T) (
queryable As IQueryable(Of T)
) As SingleResult(Of T)
Parameters
queryable
Type: System.Linq.IQueryable<T>The IQueryable<T> containing zero or one entities.
Return Value
Type: System.Web.Http.SingleResult<T>
The created SingleResult<T>.
Type Parameters
- T
The type of the data in the data source.
See Also
SingleResult Class
System.Web.Http Namespace
Return to top