Jaa


ODataQueryOptions.ApplyTo Method

Definition

Overloads

ApplyTo(IQueryable)

Apply the individual query to the given IQueryable in the right order.

ApplyTo(IQueryable, AllowedQueryOptions)

Apply the individual query to the given IQueryable in the right order.

ApplyTo(IQueryable, ODataQuerySettings)

Apply the individual query to the given IQueryable in the right order.

ApplyTo(Object, ODataQuerySettings)

Applies the query to the given entity using the given ODataQuerySettings.

ApplyTo(IQueryable, ODataQuerySettings, AllowedQueryOptions)

Apply the individual query to the given IQueryable in the right order.

ApplyTo(Object, ODataQuerySettings, AllowedQueryOptions)

Apply the individual query to the given IQueryable in the right order.

ApplyTo(IQueryable)

Apply the individual query to the given IQueryable in the right order.

public virtual System.Linq.IQueryable ApplyTo (System.Linq.IQueryable query);
abstract member ApplyTo : System.Linq.IQueryable -> System.Linq.IQueryable
override this.ApplyTo : System.Linq.IQueryable -> System.Linq.IQueryable
Public Overridable Function ApplyTo (query As IQueryable) As IQueryable

Parameters

query
IQueryable

The original IQueryable.

Returns

The new IQueryable after the query has been applied to.

Applies to

ApplyTo(IQueryable, AllowedQueryOptions)

Apply the individual query to the given IQueryable in the right order.

public virtual System.Linq.IQueryable ApplyTo (System.Linq.IQueryable query, Microsoft.AspNet.OData.Query.AllowedQueryOptions ignoreQueryOptions);
abstract member ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.AllowedQueryOptions -> System.Linq.IQueryable
override this.ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.AllowedQueryOptions -> System.Linq.IQueryable
Public Overridable Function ApplyTo (query As IQueryable, ignoreQueryOptions As AllowedQueryOptions) As IQueryable

Parameters

query
IQueryable

The original IQueryable.

ignoreQueryOptions
AllowedQueryOptions

The query parameters that are already applied in queries.

Returns

The new IQueryable after the query has been applied to.

Applies to

ApplyTo(IQueryable, ODataQuerySettings)

Apply the individual query to the given IQueryable in the right order.

public virtual System.Linq.IQueryable ApplyTo (System.Linq.IQueryable query, Microsoft.AspNet.OData.Query.ODataQuerySettings querySettings);
abstract member ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.ODataQuerySettings -> System.Linq.IQueryable
override this.ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.ODataQuerySettings -> System.Linq.IQueryable
Public Overridable Function ApplyTo (query As IQueryable, querySettings As ODataQuerySettings) As IQueryable

Parameters

query
IQueryable

The original IQueryable.

querySettings
ODataQuerySettings

The settings to use in query composition.

Returns

The new IQueryable after the query has been applied to.

Applies to

ApplyTo(Object, ODataQuerySettings)

Applies the query to the given entity using the given ODataQuerySettings.

public virtual object ApplyTo (object entity, Microsoft.AspNet.OData.Query.ODataQuerySettings querySettings);
abstract member ApplyTo : obj * Microsoft.AspNet.OData.Query.ODataQuerySettings -> obj
override this.ApplyTo : obj * Microsoft.AspNet.OData.Query.ODataQuerySettings -> obj
Public Overridable Function ApplyTo (entity As Object, querySettings As ODataQuerySettings) As Object

Parameters

entity
Object

The original entity.

querySettings
ODataQuerySettings

The ODataQuerySettings that contains all the query application related settings.

Returns

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

Remarks

Only $select and $expand query options can be applied on single entities. This method throws if the query contains any other query options.

Applies to

ApplyTo(IQueryable, ODataQuerySettings, AllowedQueryOptions)

Apply the individual query to the given IQueryable in the right order.

public virtual System.Linq.IQueryable ApplyTo (System.Linq.IQueryable query, Microsoft.AspNet.OData.Query.ODataQuerySettings querySettings, Microsoft.AspNet.OData.Query.AllowedQueryOptions ignoreQueryOptions);
abstract member ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.ODataQuerySettings * Microsoft.AspNet.OData.Query.AllowedQueryOptions -> System.Linq.IQueryable
override this.ApplyTo : System.Linq.IQueryable * Microsoft.AspNet.OData.Query.ODataQuerySettings * Microsoft.AspNet.OData.Query.AllowedQueryOptions -> System.Linq.IQueryable
Public Overridable Function ApplyTo (query As IQueryable, querySettings As ODataQuerySettings, ignoreQueryOptions As AllowedQueryOptions) As IQueryable

Parameters

query
IQueryable

The original IQueryable.

querySettings
ODataQuerySettings

The settings to use in query composition.

ignoreQueryOptions
AllowedQueryOptions

The query parameters that are already applied in queries.

Returns

The new IQueryable after the query has been applied to.

Applies to

ApplyTo(Object, ODataQuerySettings, AllowedQueryOptions)

Apply the individual query to the given IQueryable in the right order.

public virtual object ApplyTo (object entity, Microsoft.AspNet.OData.Query.ODataQuerySettings querySettings, Microsoft.AspNet.OData.Query.AllowedQueryOptions ignoreQueryOptions);
abstract member ApplyTo : obj * Microsoft.AspNet.OData.Query.ODataQuerySettings * Microsoft.AspNet.OData.Query.AllowedQueryOptions -> obj
override this.ApplyTo : obj * Microsoft.AspNet.OData.Query.ODataQuerySettings * Microsoft.AspNet.OData.Query.AllowedQueryOptions -> obj
Public Overridable Function ApplyTo (entity As Object, querySettings As ODataQuerySettings, ignoreQueryOptions As AllowedQueryOptions) As Object

Parameters

entity
Object

The original entity.

querySettings
ODataQuerySettings

The ODataQuerySettings that contains all the query application related settings.

ignoreQueryOptions
AllowedQueryOptions

The query parameters that are already applied in queries.

Returns

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

Remarks

Only $select and $expand query options can be applied on single entities. This method throws if the query contains any other query options.

Applies to