SelectExpandQueryOption Class

 

Represents the OData $select and $expand query options.

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

Inheritance Hierarchy

System.Object
  System.Web.OData.Query.SelectExpandQueryOption

Syntax

public class SelectExpandQueryOption
public ref class SelectExpandQueryOption 
type SelectExpandQueryOption = class end
Public Class SelectExpandQueryOption

Constructors

Name Description
System_CAPS_pubmethod SelectExpandQueryOption(String, String, ODataQueryContext, ODataQueryOptionParser)

Initializes a new instance of the SelectExpandQueryOption class.

Properties

Name Description
System_CAPS_pubproperty Context

Gets the given ODataQueryContext.

System_CAPS_pubproperty LevelsMaxLiteralExpansionDepth

Gets or sets the number of levels that a top level $expand=NavigationProperty($levels=max) will be expanded. This value will decrease by one with each nesting level in the $expand clause. For example, with a property value 5, the following query $expand=A($expand=B($expand=C($levels=max))) will be interpreted as $expand=A($expand=B($expand=C($levels=3))). If the query gets validated, the MaxExpansionDepth value must be greater than or equal to this value.

System_CAPS_pubproperty RawExpand

Gets the raw $expand value.

System_CAPS_pubproperty RawSelect

Gets the raw $select value.

System_CAPS_pubproperty SelectExpandClause

Gets the parsed SelectExpandClause for this query option.

System_CAPS_pubproperty Validator

Gets or sets the $select and $expand query validator.

Methods

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(IQueryable, ODataQuerySettings, IAssembliesResolver)

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.

System_CAPS_pubmethod ApplyTo(Object, ODataQuerySettings, IAssembliesResolver)

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

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Validate(ODataValidationSettings)

Validate the $select and $expand query based on the given validationSettings. It throws an ODataException if validation failed.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.OData.Query Namespace

Return to top