Skip to content

EntityAttrExpr class

An Expression descendant which represents an attribute.

public abstract class Korzh.EasyQuery.EntityAttrExpr
: EqExpression
TypeNameDescription
EntityAttrAttributeGets or sets the attribute.
StringCustomFuncGets the custom func for expression if defined
DataTypeDataTypeGets the type of the expression.
BooleanIsParentExprGets a value indicating whether this instance is a parent expression.
DataKindKindGets the expression kind.
StringTextGets the expression text. For this type it returns entity name + attribute caption.
StringTypeNameNon-static version of Korzh.EasyQuery.EntityAttrExpr.STypeName property.
StringValueGets or sets the expression value.
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.
voidInit(DataModel model, EntityAttr attr)Initializes a new instance of the Korzh.EasyQuery.EntityAttrExpr class with specified model and attribute.
voidLoadFromJsonDict(JsonDict dict)Loads expression from IDictionary object (used when we load query from JSON).
voidLoadFromXmlReader(XmlReader reader)Loads expression from XML.
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 the expression to XML writer.
voidSetAttribute(EntityAttr attr)Sets the entity attribute.
voidSetContentSilent(String val, String txt)Sets the content of the expression silently (without calling ContentChanged event).
TypeNameDescription
StringSTypeNameGets the name of the expression type.
StringTextFormatGets or sets the format of the text representation for this type of expression.