SelectExpandQueryOption.ApplyTo Method
Namespace: System.Web.Http.OData.Query
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
ApplyTo(IQueryable, ODataQuerySettings) | Applies the $select and $expand query options to the given IQueryable using the given ODataQuerySettings. |
|
ApplyTo(Object, ODataQuerySettings) | Applies the $select and $expand query options to the given entity using the given ODataQuerySettings. |
See Also
SelectExpandQueryOption Class
System.Web.Http.OData.Query Namespace
Return to top
SelectExpandQueryOption.ApplyTo Method (IQueryable, ODataQuerySettings)
Applies the $select and $expand query options to the given IQueryable using the given ODataQuerySettings.
Syntax
public IQueryable ApplyTo(
IQueryable queryable,
ODataQuerySettings settings
)
public:
IQueryable^ ApplyTo(
IQueryable^ queryable,
ODataQuerySettings^ settings
)
member ApplyTo :
queryable:IQueryable *
settings:ODataQuerySettings -> IQueryable
Public Function ApplyTo (
queryable As IQueryable,
settings As ODataQuerySettings
) As IQueryable
Parameters
queryable
Type: System.Linq.IQueryableThe original IQueryable.
settings
Type: System.Web.Http.OData.Query.ODataQuerySettingsThe ODataQuerySettings that contains all the query application related settings.
Return Value
Type: System.Linq.IQueryable
The new IQueryable after the filter query has been applied to.
Return to top
SelectExpandQueryOption.ApplyTo Method (Object, ODataQuerySettings)
Applies the $select and $expand query options to the given entity using the given ODataQuerySettings.
Syntax
public object ApplyTo(
object entity,
ODataQuerySettings settings
)
public:
Object^ ApplyTo(
Object^ entity,
ODataQuerySettings^ settings
)
member ApplyTo :
entity:Object *
settings:ODataQuerySettings -> Object
Public Function ApplyTo (
entity As Object,
settings As ODataQuerySettings
) As Object
Parameters
entity
Type: System.ObjectThe original entity.
settings
Type: System.Web.Http.OData.Query.ODataQuerySettingsThe ODataQuerySettings that contains all the query application related settings.
Return Value
Type: System.Object
The new entity after the $select and $expand query has been applied to.
Return to top