SelectExpandQueryOption Class

 

Represents the OData $select and $expand query options.

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

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

public ref class SelectExpandQueryOption 

NameDescription
System_CAPS_pubmethodSelectExpandQueryOption(String^, String^, ODataQueryContext^, ODataQueryOptionParser^)

Initializes a new instance of the SelectExpandQueryOption class.

NameDescription
System_CAPS_pubpropertyContext

Gets the given ODataQueryContext.

System_CAPS_pubpropertyLevelsMaxLiteralExpansionDepth

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_pubpropertyRawExpand

Gets the raw $expand value.

System_CAPS_pubpropertyRawSelect

Gets the raw $select value.

System_CAPS_pubpropertySelectExpandClause

Gets the parsed SelectExpandClause for this query option.

System_CAPS_pubpropertyValidator

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

NameDescription
System_CAPS_pubmethodApplyTo(IQueryable^, ODataQuerySettings^)

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

System_CAPS_pubmethodApplyTo(IQueryable^, ODataQuerySettings^, IAssembliesResolver^)

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

System_CAPS_pubmethodApplyTo(Object^, ODataQuerySettings^)

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

System_CAPS_pubmethodApplyTo(Object^, ODataQuerySettings^, IAssembliesResolver^)

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

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodValidate(ODataValidationSettings^)

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

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

Return to top
Show: