Table of Contents

Class QueryInfoProvider

Namespace
CMS.DataEngine
Assembly
CMS.DataEngine.dll

Enables access to queries.

[ProviderInterface(typeof(IQueryInfoProvider))]
public class QueryInfoProvider : AbstractInfoProvider<QueryInfo, QueryInfoProvider>, IInfoProvider, ICustomizableProvider, IBulkOperationProvider, IWebFarmProvider, IInfoValidator<QueryInfo>, IInfoByGuidProvider<QueryInfo>, IInfoByNameProvider<QueryInfo>, IBulkInfoProvider<QueryInfo>, IFullNameInfoProvider, IQueryInfoProvider, IInfoProvider<QueryInfo>, IInfoByIdProvider<QueryInfo>
Inheritance
object
QueryInfoProvider
Implements
Inherited Members
Extension Methods

Constructors

QueryInfoProvider()

Constructor

public QueryInfoProvider()

Methods

GetFullNameDictionary()

Creates new dictionary for caching the objects by full name

public ProviderInfoDictionary<string> GetFullNameDictionary()

Returns

ProviderInfoDictionary<string>

GetFullNameWhereCondition(string)

Gets the where condition that searches the object based on the given full name

public IWhereCondition GetFullNameWhereCondition(string fullName)

Parameters

fullName string

Object full name

Returns

IWhereCondition

GetObjectQueryInternal()

Gets the object query for the provider

protected override ObjectQuery<QueryInfo> GetObjectQueryInternal()

Returns

ObjectQuery<QueryInfo>

GetQueryInfo(string, bool)

Returns QueryInfo with specified name.

public static QueryInfo GetQueryInfo(string name, bool throwException = true)

Parameters

name string

QueryInfo name.

throwException bool

If true, exception is thrown if query does not exist.

Returns

QueryInfo

Query object. Null if the query doesn't exist.

GetQueryType(int)

Gets the query type based on the given type ID

[Obsolete("Method is deprecated and will be removed in next version.")]
public static QueryTypeEnum GetQueryType(int queryTypeId)

Parameters

queryTypeId int

Query type ID

Returns

QueryTypeEnum

GetQueryTypeID(QueryTypeEnum)

Gets the query type ID based on the given type

public static int GetQueryTypeID(QueryTypeEnum queryType)

Parameters

queryType QueryTypeEnum

Query type

Returns

int