Skip to content

Column class

Represents some column which will be queried.

public class Korzh.EasyQuery.Column
TypeNameDescription
String_captionColumn caption
Boolean_isDistinctA 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.
EqExpressionExprGets or sets the column expression.
Int32ExprTypeGets or sets the tag (type) of the expression.
Int32IndexGets the index of column in column list.
BooleanIsAggregateGets a value indicating whether this Korzh.EasyQuery.Column is aggregate.
BooleanIsDistinctGets or sets a value indicating whether this Column must be marked as DISTINCT in result SQL statement.
BooleanIsEnabledGets or sets a value indicating whether this column is enabled. Only enabled columns will participates in the query.
BooleanIsJustSortingGets a value indicating whether this column is just sorting one (will not be shown in query result).
BooleanIsReadOnlyGets or sets a value indicating whether this columns marked as read only.
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.
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
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.
voidReadFromJson(JsonReader reader)Loads column from JSON reader. Calls Korzh.EasyQuery.Column.ReadOnePropFromJson(Newtonsoft.Json.JsonReader,System.String)
TaskReadFromJsonAsync(JsonReader reader)Loads column from JSON reader (asynchronous way). Calls Korzh.EasyQuery.Column.ReadOnePropFromJsonAsync(Newtonsoft.Json.JsonReader,System.String)
voidReadOnePropFromJson(JsonReader reader, String propName)Reads the property from JSON reader or skip unused.
TaskReadOnePropFromJsonAsync(JsonReader reader, String propName)Reads the property from JSON reader or skip unused (asynchronous way).
voidRecreateExpression(Int32 tag)Recreates the column expression.
voidRegenerateCaption()Regenerates the column caption.
voidSaveToXmlWriter(XmlWriter writer)Saves the column definition to XML.
voidWritePropertiesToJson(JsonWriter writer)Saves content of the column to JSON.
TaskWritePropertiesToJsonAsync(JsonWriter writer)Saves content of the column to JSON (asynchronous way).
voidWriteToJson(JsonWriter writer)Saves the column definition to JSON. Calls Korzh.EasyQuery.Column.WritePropertiesToJson(Newtonsoft.Json.JsonWriter).
TaskWriteToJsonAsync(JsonWriter writer)Saves the column definition to JSON (asynchronous way). Calls Korzh.EasyQuery.Column.WritePropertiesToJsonAsync(Newtonsoft.Json.JsonWriter).