Skip to content

Column class

Represents some column which will be queried.

public class Korzh.EasyQuery.Column
TypeNameDescription
String_captionColumn caption
BooleandistinctA field that indicates whether this Column must be marked as DISTINCT in result SQL statement.
Int32innerSortIndex
BooleanneedAliasRegenerationIndicates whether alias should be recreated
QueryParamListParamsThe parameters associated with this column
ColumnStoreparentParent columns storage.
SortDirectionsortingColumn sorting direction
TypeNameDescription
StringAliasGets or Sets the column alias.
BooleanAllowSortingGets a value indicating whether this column can be sorted.
EntityAttrBaseAttrGets the entity attribute (EntityAttr object) this column is based on.
StringCaptionGets or sets the column caption.
BooleanDistinctGets or sets a value indicating whether this Column must be marked as DISTINCT in result SQL statement.
EqExpressionExprGets or sets the column expression.
StringExprTypeGets or sets the type name of the expression.
Int32IndexGets the index of column in column list.
BooleanIsAggregateGets a value indicating whether this Korzh.EasyQuery.Column is aggregate.
BooleanIsJustSortingGets a value indicating whether this column is just sorting one (will not be shown in query result).
DataModelModelGets or sets the reference to the data model where this column is defined.
ColumnStoreParentGets or sets the parent columns storage.
QueryParentQueryGets the parent query.
BooleanReadOnlyGets or sets a value indicating whether this columns marked as read only.
Int32SortIndexGets or sets the index of the column in the sorting list. Is used to load the column from XML.
SortDirectionSortingGets or sets the sorting direction.
TypeSystemTypeGets the system type of this column.
StringUserDataGets or sets users data for the column
TypeNameDescription
EventHandlerColumnChangedIndicates that column was changed.
TypeNameDescription
voidCheckDataModel()Checks the data model object. Generates an exception if Model property has null value.
voidCheckForParams()Checks if the attribute associated with this column contains parameters and (if yes) - calls Korzh.EasyQuery.Query.RefreshParams method.
voidExprChangeHandler(Object sender, EventArgs e)Expression’s Change event handler.
EntityAttrGetAttribute()Gets the attribute associated with this column
Int32GetHashCode()Returns hash code for column
voidLoadFromJsonDict(JsonDict colDict)Loads column’s properties from some System.Collections.IDictionary object. It’s used for deserialization from JSON
voidLoadFromXmlReader(XmlReader reader)Loads Korzh.EasyQuery.Column definition from XML.
voidOnColumnChanged(Int32 part)Raises the ColumnChanged event.
BooleanOnColumnChanging(Int32 part)Called when the column is about to change.
voidRecreateExpression(String type)Recreates the column expression.
voidRegenerateCaption()Regenerates the column caption.
JsonDictSaveToJsonDict()Saves column properties into some System.Collections.IDictionary object. It’s useful for JSON serialization
voidSaveToXmlWriter(XmlWriter writer)Saves the column definition to XML.