customsqlexpr-class
Represents a custom SQL expression
public class Korzh.EasyQuery.Db.CustomSqlExpr
: EqExpression
Assembly: Korzh.EasyQuery.Db.dll
Constructors
Name | Type | Description |
---|---|---|
CustomSqlExpr(DataModel model) | void | Initializes a new instance of the CompoundExpr class. |
Properties
Name | Type | Description |
---|---|---|
Attribute | EntityAttr | Gets or sets the base attribute for this custom SQL expression. |
DataType | DataType | Gets or sets the expression's data type. |
HasSubQuery | bool | Gets a boolean value indicating whether this expression contains a sub-query. |
IsAggregate | bool | Gets a value indicating whether this expression is aggregate. |
Tag | int | Get the expression's tag - a special identifier that is used to distinguish the type of the expression . |
UsedTables | TableList | |
Value | string | Gets or sets the value of expression. |
Methods
Name | Type | Description |
---|---|---|
CustomSqlChanged() | void | This function is called when the value of the expression (the custom SQL) is changed. |
LoadFromXmlReader(XmlReader reader) | void | Loads expression from XML. |
ReadOnePropFromJsonAsync(JsonReader reader, string propName, CancellationToken ct) | Task | Reads one expression property from JSON (asynchronous way). |
SaveToXmlWriter(XmlWriter writer, string tagName) | void | Saves expression to XML writer. |
SetContentSilent(string val, string txt) | void | Sets the content of the expression silently (without calling ContentChanged event). |
TagToOldClassName(int tag) | string | Converts the expression's tag value to the name of old expression class (like "CONST" or "ENTATTR"). |
WritePropertiesToJsonAsync(JsonWriter writer, CancellationToken ct) | Task | Writes expression properties to JSON (asynchronous way). |