Class SqlGenerator
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Generates SQL queries for given table.
public static class SqlGenerator
- Inheritance
-
objectSqlGenerator
Methods
GetQueryType(string)
Gets query type due to specified query name.
[Obsolete("Method is deprecated and will be removed in next version.")]
[ObsoleteSince(28, 2)]
public static SqlOperationTypeEnum GetQueryType(string queryName)
Parameters
queryName
stringName of the query
Returns
GetSqlQuery(string, SqlOperationTypeEnum)
Generates the given type of query for table specified by its className.
[Obsolete("Method is deprecated and will be removed in next version.")]
[ObsoleteSince(28, 2)]
public static string GetSqlQuery(string className, SqlOperationTypeEnum queryType)
Parameters
className
stringClass name of the document data
queryType
SqlOperationTypeEnumQuery type
Returns
- string
IsSystemQuery(string)
Check if the specified query is system query.
[Obsolete("Method is deprecated and will be removed in next version.")]
[ObsoleteSince(28, 2)]
public static bool IsSystemQuery(string queryName)
Parameters
queryName
stringQuery name
Returns
- bool