Skip to content

CustomSqlExpr class

Represents a custom SQL expression

public class Korzh.EasyQuery.Db.CustomSqlExpr
: EqExpression

Package: Korzh.EasyQuery.Db (targets: netstandard2.0)

Assembly: Korzh.EasyQuery.Db.dll

NameTypeDescription
CustomSqlExpr(DataModel model)voidInitializes a new instance of the CompoundExpr class.
NameTypeDescription
AttributeEntityAttrGets or sets the base attribute for this custom SQL expression.
IsAggregateboolGets a value indicating whether this expression is aggregate.
TagintGet the expression’s tag - a special identifier that is used to distinguish the type of the expression .
ValuestringGets or sets the value of expression.
NameTypeDescription
CustomSqlChanged()voidThis function is called when the value of the expression (the custom SQL) is changed.
GetUsedTables(TableList usedTables)voidReturns list of tables used in condition.
LoadFromXmlReader(XmlReader reader)voidLoads expression from XML.
ReadOnePropFromJsonAsync(JsonReader reader, string propName)TaskReads one expression property from JSON (asynchronous way).
SaveToXmlWriter(XmlWriter writer, string tagName)voidSaves expression to XML writer.
SetContentSilent(string val, string txt)voidSets the content of the expression silently (without calling ContentChanged event).
TagToOldClassName(int tag)stringConverts the expression’s tag value to the name of old expression class (like “CONST” or “ENTATTR”).
WritePropertiesToJsonAsync(JsonWriter writer)TaskWrites expression properties to JSON (asynchronous way).