Skip to content

EqExpression class

Represents common expression object.

public abstract class Korzh.EasyQuery.EqExpression

Fields

TypeNameDescription
StringtextThis field contains expression’s text

Properties

TypeNameDescription
StringCustomFuncGets the custom func for expression if defined
DataTypeDataTypeGets or sets the data type.
StringHintGets or sets the expression hint.
BooleanIsAggregateGets a value indicating whether this expression is aggregate.
DataKindKindGets the expression kind.
TypeSystemTypeGets the system type for this expreesion (it’s used in LINQ query builder)
StringTextGets or sets the expression text used for visual representation.
StringTypeNameNon-static version of Korzh.EasyQuery.EqExpression.STypeName property.
StringValueGets or sets the value of expression.

Events

TypeNameDescription
EventHandlerContentChangeThis event is raised after expression was changed

Methods

TypeNameDescription
voidAssignExpr(EqExpression expr)Assigns some expression to this one. This method just does nothing in the base class but can perform some actions in Expression descendants.
voidContentChanged()Invoke ContentChange event
voidLoadFromJsonDict(JsonDict dict)Loads expression from dictionary object (used when we load query from JSON).
voidLoadFromXmlReader(XmlReader reader)Loads expression from XML.
voidOnContentChange(EventArgs e)Raises the ContentChange event.
voidSaveToJsonDict(JsonDict dict)Saves expression’s properties to dictionary (used to serialize expression into JSON)
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.
voidSaveToXmlWriter(XmlWriter writer)Saves expression to XML writer.
voidSetContent(String val, String txt)Sets the content of the expression (both its value and text).
voidSetContentSilent(String val, String txt)Sets the content of the expression silently (without calling ContentChanged event).
voidWriteXmlTagStart(XmlWriter writer)Writes the expression XML tag start.
voidWriteXmlTagStart(XmlWriter writer, String tagName)Writes the expression XML tag start.

Static Fields

TypeNameDescription
Dictionary<String, IExpressionCreator>Creators

Static Properties

TypeNameDescription
StringSTypeNameGets the name of the expression type.
StringXmlTagNameGets the name of the XML tag used for representation of Expression (an all its descendants) object in XML files.

Static Methods

TypeNameDescription
StringApplyCustomFunc(String func, String expr)Applies the custom function.
EqExpressionCreate(String exprType, DataModel model)Creates the expression instance of specified type.
BooleanRegisterType(String type, IExpressionCreator creator)Registers new type of expression.