Class QueryExpressionBase<TExpression>
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Query expression base class
public class QueryExpressionBase<TExpression> : QueryParametersBase<TExpression>, IQueryParameters<TExpression>, IQueryExpression, IQueryParameters, IQueryObjectWithValue, IQueryObject where TExpression : QueryExpressionBase<TExpression>, new()
Type Parameters
TExpression
- Inheritance
-
objectQueryParametersBase<TExpression>QueryExpressionBase<TExpression>
- Implements
-
IQueryParameters<TExpression>
- Derived
- Inherited Members
- Extension Methods
Properties
Expression
Expression
public string Expression { get; set; }
Property Value
- string
Methods
AsColumn(string)
Creates a column from the given expression
[Obsolete("Method was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(27, 0)]
public QueryColumn AsColumn(string alias)
Parameters
alias
stringColumn alias
Returns
AsValue()
Gets a query expression representing this object as a value
public virtual IQueryExpression AsValue()
Returns
CopyPropertiesTo(IQueryObject)
Copies all the object properties to the given target class
public override void CopyPropertiesTo(IQueryObject target)
Parameters
target
IQueryObjectTarget class
GetExpression()
Gets a query expression representing this object as a value
public virtual string GetExpression()
Returns
- string
ToString(bool)
Returns the string representation of the expression, with possibility of expanding parameters
public override string ToString(bool expand)
Parameters
expand
boolIf true, the result is expanded with parameters so it can act as standalone value.
Returns
- string