SelectExpandQueryOption.ApplyTo Method

 

Namespace:   System.Web.Http.OData.Query
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Overload List

Name Description
System_CAPS_pubmethod ApplyTo(IQueryable, ODataQuerySettings)

Applies the $select and $expand query options to the given IQueryable using the given ODataQuerySettings.

System_CAPS_pubmethod 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

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

Return Value

Type: System.Object

The new entity after the $select and $expand query has been applied to.

Return to top