Class RetrieveContentQueryParametersBase<T>
Base class for query parameters used during content retrieval. IContentRetriever
public abstract class RetrieveContentQueryParametersBase<T> : RetrieveQueryParametersBase<T> where T : RetrieveContentQueryParametersBase<T>
Type Parameters
T
- Inheritance
-
objectRetrieveContentQueryParametersBase<T>
- Derived
- Inherited Members
- Extension Methods
Methods
InSmartFolder(Guid)
Filters the query to return only content items that are in the specified smart folder.
public T InSmartFolder(Guid smartFolderGuid)
Parameters
smartFolderGuidGuidGuid of the smart folder.
Returns
- T
Returns this
Tinstance to chain further configuration.
InSmartFolder(int)
Filters the query to return only content items that are in the specified smart folder.
public T InSmartFolder(int smartFolderId)
Parameters
smartFolderIdintId of the smart folder.
Returns
- T
Returns this
Tinstance to chain further configuration.
InSmartFolder(string)
Filters the query to return only content items that are in the specified smart folder.
public T InSmartFolder(string smartFolderName)
Parameters
smartFolderNamestringName of the smart folder.
Returns
- T
Returns this
Tinstance to chain further configuration.
IncludeTotalCount()
Configures query to include total count of results when the query has Offset(int, int) configured.
public T IncludeTotalCount()
Returns
- T
Returns
Tinstance to chain further configuration.
LinkedFrom(string, string, IEnumerable<IContentItemIdentifier>)
Retrieves content items of the specified contentTypeName linked from referenceFieldName.
public T LinkedFrom(string contentTypeName, string referenceFieldName, IEnumerable<IContentItemIdentifier> items)
Parameters
contentTypeNamestringContent type name referencing content items to be retrieved.
referenceFieldNamestringName of the field within
contentTypeNamereferencing content items to be retrieved.itemsIEnumerable<IContentItemIdentifier>Collection of IContentItemIdentifier of items for which to retrieve the linked items.
Returns
- T
Returns this
Tinstance to chain further configuration.
Remarks
Simultaneous call with Linking(string, IEnumerable<int>), Linking(string, string, IEnumerable<int>), Linking(string, string, IEnumerable<int>), or LinkingSchemaField(string, IEnumerable<int>) is not supported. Multiple calls of this method are not supported.
LinkedFromSchemaField(string, IEnumerable<IContentItemIdentifier>)
Retrieves content items linked from referenceSchemaFieldName.
public T LinkedFromSchemaField(string referenceSchemaFieldName, IEnumerable<IContentItemIdentifier> items)
Parameters
referenceSchemaFieldNamestringName of the schema field referencing content items to be retrieved.
itemsIEnumerable<IContentItemIdentifier>Collection of IContentItemIdentifier of items for which to retrieve the linked items.
Returns
- T
Returns this
Tinstance to chain further configuration.
Remarks
Simultaneous call with Linking(string, IEnumerable<int>), Linking(string, string, IEnumerable<int>), Linking(string, string, IEnumerable<int>), or LinkingSchemaField(string, IEnumerable<int>) is not supported. Multiple calls of this method are not supported.
LinkingSchemaField(string, IEnumerable<int>)
Configure query to retrieve linked items which reference in the referenceSchemaFieldName.
public T LinkingSchemaField(string referenceSchemaFieldName, IEnumerable<int> items)
Parameters
referenceSchemaFieldNamestringName of the schema field referencing content items to be retrieved.
itemsIEnumerable<int>Identifiers of items which are linked from the retrieved items.
Returns
- T
Returns this
Tinstance to chain further configuration.
Remarks
Simultaneous call with LinkedFrom(string, string, IEnumerable<IContentItemIdentifier>) or LinkedFromSchemaField(string, IEnumerable<IContentItemIdentifier>) is not supported. Multiple calls of this method are not supported.
Offset(int, int)
Configures the offset and number of records to be returned.
public T Offset(int offset, int fetch)
Parameters
offsetintIndex of the first record to return.
fetchintNumber of records to return.
Returns
- T
Returns
Tinstance to chain further configuration.
Remarks
Requires configured ordering via OrderBy(params OrderByColumn[]) method - it guarantees consistently ordered results. Cannot be combined with TopN(int). Using Offset(int, int) is recommended to implement a query paging solution.
- See Also
OrderBy(params OrderByColumn[])
Configures one or multiple columns to perform order defined by arguments.
public T OrderBy(params OrderByColumn[] columns)
Parameters
columnsOrderByColumn[]Columns to perform order represented as OrderByColumn.
Returns
- T
Returns
Tinstance to chain further configuration.
OrderBy(params string[])
Configures one or multiple columns to perform ascending order.
public T OrderBy(params string[] columnNames)
Parameters
columnNamesstring[]Names of columns to perform order.
Returns
- T
Returns
Tinstance to chain further configuration.
TopN(int)
Configures number of records to be returned.
public T TopN(int topN)
Parameters
topNintNumber of records to return.
Returns
- T
Returns
Tinstance to chain further configuration.
Remarks
Cannot be combined with Offset(int, int). Use Offset(int, int) instead to implement a query paging solution.
Where(Action<WhereParameters>)
Configures query to extract only those records that fulfill a specified condition.
public T Where(Action<WhereParameters> configureWhere)
Parameters
configureWhereAction<WhereParameters>Action configuring the where condition tree using the WhereParameters.
Returns
- T
Returns
Tinstance to chain further configuration.