Skip to main content

customsqlexpr-class

Represents a custom SQL expression

public class Korzh.EasyQuery.Db.CustomSqlExpr
: EqExpression

Assembly: Korzh.EasyQuery.Db.dll

Constructors

NameTypeDescription
CustomSqlExpr(DataModel model)voidInitializes a new instance of the CompoundExpr class.

Properties

NameTypeDescription
AttributeEntityAttrGets or sets the base attribute for this custom SQL expression.
DataTypeDataTypeGets or sets the expression's data type.
HasSubQueryboolGets a boolean value indicating whether this expression contains a sub-query.
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 .
UsedTablesTableList
ValuestringGets or sets the value of expression.

Methods

NameTypeDescription
CustomSqlChanged()voidThis function is called when the value of the expression (the custom SQL) is changed.
LoadFromXmlReader(XmlReader reader)voidLoads expression from XML.
ReadOnePropFromJsonAsync(JsonReader reader, string propName, CancellationToken ct)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, CancellationToken ct)TaskWrites expression properties to JSON (asynchronous way).