Class QueryExtensions

Extensions for Query.

Inheritance
object
QueryExtensions
Namespace: StylelabsStylelabs.MSdkExtensions
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public static class QueryExtensions

Methods

Copy(Query)

Creates a shallow copy of a query.

Declaration
RequestResponse
public static Query Copy(this Query query)
Parameters
TypeNameDescription
Queryquery

The query to copy.

Returns
TypeDescription
Query

A shallow copy of the query.

MakeSureEntitiesAreLoaded(Query)

Makes sure that the query is configured to load entities. If it isn't the case, it will reset to Default.

Declaration
RequestResponse
public static void MakeSureEntitiesAreLoaded(this Query query)
Parameters
TypeNameDescription
Queryquery

The query.

MakeSureOnlyIdsAreLoaded(Query)

Makes sure that the query is configured to load ids. If it isn't the case, it will reset to Ids.

Declaration
RequestResponse
public static void MakeSureOnlyIdsAreLoaded(this Query query)
Parameters
TypeNameDescription
Queryquery

The query.

Validate(Query)

Validates that the query object is valid. Otherwise it will throw.

Declaration
RequestResponse
public static void Validate(this Query query)
Parameters
TypeNameDescription
Queryquery

The query.

Do you have some feedback for us?

If you have suggestions for improving this article,