Skip to main content

entityattrexpr-class

An EqExpression descendant that represents an entity attribute.

public class Korzh.EasyQuery.EntityAttrExpr
: EqExpression

Assembly: Korzh.EasyQuery.dll

Constructors

NameTypeDescription
EntityAttrExpr(DataModel model, EntityAttr attr)void

Properties

NameTypeDescription
AttributeEntityAttrGets or sets the attribute.
CustomFuncstringGets the custom func for expression if defined
DataTypeDataTypeGets the type of the expression.
HasSubQueryboolGets a boolean value indicating whether this expression contains a sub-query.
IsAggregateboolGets a value indicating whether this expression is aggregate.
IsParentExprboolGets a value indicating whether this instance is a parent expression.
KindDataKindGets the expression kind.
TagintGet the expression's tag - a special identifier that is used to distinguish the type of the expression .
TextstringGets the expression text. For this type it returns entity name + attribute caption.
ValuestringGets or sets the expression value.

Methods

NameTypeDescription
AssignExpr(EqExpression expr)voidAssigns some expression to this one. This method just does nothing in the base class but can perform some actions in Expression descendants.
LoadFromXmlReader(XmlReader reader)voidLoads expression from XML.
ReadOnePropFromJsonAsync(JsonReader reader, string propName, CancellationToken ct)TaskReads one property of the expression (asynchronous way). or skips unused from the JSON reader.
SaveToXmlWriter(XmlWriter writer, string tagName)voidSaves the expression to XML writer.
SetAttribute(EntityAttr attr)voidSets the entity attribute.
SetContentSilent(string val, string txt)voidSets the content of the expression silently (without calling ContentChanged event).
WritePropertiesToJsonAsync(JsonWriter writer, CancellationToken ct)TaskSaves propeerties of the expression (asynchronous way). to JSON writer.