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 | |
---|---|---|
![]() |
SelectExpandQueryOption(String, String, ODataQueryContext, ODataQueryOptionParser) | Initializes a new instance of the SelectExpandQueryOption class. |
Properties
Name | Description | |
---|---|---|
![]() |
Context | Gets the given ODataQueryContext. |
![]() |
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. |
![]() |
RawExpand | Gets the raw $expand value. |
![]() |
RawSelect | Gets the raw $select value. |
![]() |
SelectExpandClause | Gets the parsed SelectExpandClause for this query option. |
![]() |
Validator | Gets or sets the $select and $expand query validator. |
Methods
Name | Description | |
---|---|---|
![]() |
ApplyTo(IQueryable, ODataQuerySettings) | Applies the $select and $expand query options to the given IQueryable using the given ODataQuerySettings. |
![]() |
ApplyTo(IQueryable, ODataQuerySettings, IAssembliesResolver) | 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. |
![]() |
ApplyTo(Object, ODataQuerySettings, IAssembliesResolver) | Applies the $select and $expand query options to the given entity using the given ODataQuerySettings. |
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
ToString() | (Inherited from Object.) |
![]() |
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