Skip to content

CustomSqlExpr class

Represents a custom SQL expression

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

Properties

TypeNameDescription
EntityAttrBaseAttrGets or sets the base attribute for this custom SQL expression.
BooleanIsAggregateGets a value indicating whether this expression is aggregate.
StringTypeNameNon-static version of Korzh.EasyQuery.Db.CustomSqlExpr.STypeName property.
StringValueGets or sets the value of expression.

Methods

TypeNameDescription
StringGetSqlExpr(DbQueryFormats formats, SqlExtraClauses extraClauses = null)Gets the SQL expression.
voidGetUsedTables(TableList usedTables)Returns list of tables used in condition.
voidLoadFromJsonDict(JsonDict dict)Loads expression from IDictionary object (used when we load query from JSON).
voidLoadFromXmlReader(XmlReader reader)Loads expression from XML.
voidSaveToJsonDictCore(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.
voidSaveToXmlWriter(XmlWriter writer, String tagName)Saves expression to XML writer.
voidSetContentSilent(String val, String txt)Sets the content of the expression silently (without calling ContentChanged event).

Static Properties

TypeNameDescription
StringSTypeNameGets the name of the expression type.