Skip to content

CustomSqlExpr class

Represents a custom SQL expression

public class Korzh.EasyQuery.Db.CustomSqlExpr
: EqExpression
TypeNameDescription
EntityAttrAttributeGets or sets the base attribute for this custom SQL expression.
BooleanIsAggregateGets a value indicating whether this expression is aggregate.
Int32TagGet the expression’s tag - a special identifier that is used to distinguish the type of the expression .
StringValueGets or sets the value of expression.
TypeNameDescription
voidGetUsedTables(TableList usedTables)Returns list of tables used in condition.
voidLoadFromXmlReader(XmlReader reader)Loads expression from XML.
voidReadOnePropFromJson(JsonReader reader, String propName)Reads one expression property from JSON
TaskReadOnePropFromJsonAsync(JsonReader reader, String propName)Reads one expression property from JSON (asynchronous way).
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).
StringTagToOldClassName(Int32 tag)Converts the expression’s tag value to the name of old expression class (like “CONST” or “ENTATTR”).
voidWritePropertiesToJson(JsonWriter writer)Writes expression properties to JSON
TaskWritePropertiesToJsonAsync(JsonWriter writer)Writes expression properties to JSON (asynchronous way).