CustomSqlExpr class

Represents a custom SQL expression

public class Korzh.EasyQuery.Db.CustomSqlExpr
    : EqExpression, ISqlExpression, IDbCondition


Type Name Description
EntityAttr BaseAttr Gets or sets the base attribute for this custom SQL expression.
Boolean IsAggregate Gets a value indicating whether this expression is aggregate.
String TypeName Non-static version of Korzh.EasyQuery.Db.CustomSqlExpr.STypeName property.
String Value Gets or sets the value of expression.


Type Name Description
String GetSqlExpr(DbQueryFormats formats, SqlExtraClauses extraClauses = null) Gets the SQL expression.
void GetUsedTables(TableList usedTables) Returns list of tables used in condition.
void LoadFromJsonDict(JsonDict dict) Loads expression from IDictionary object (used when we load query from JSON).
void LoadFromXmlReader(XmlReader reader) Loads expression from XML.
void SaveToJsonDictCore(JsonDict dict) Saves expression's properties to dictionary (used to serialize expression into JSON) This is an abstract method which should be overridden in descendant classes.
void SaveToXmlWriter(XmlWriter writer, String tagName) Saves expression to XML writer.
void SetContentSilent(String val, String txt) Sets the content of the expression silently (without calling ContentChanged event).

Static Properties

Type Name Description
String STypeName Gets the name of the expression type.