Skip to content

QueryColumn class

Represents some column which will be queried.

public class Korzh.EasyQuery.QueryColumn

Package: Korzh.EasyQuery (targets: netstandard2.0)

Assembly: Korzh.EasyQuery.dll

NameTypeDescription
_captionstringQueryColumn caption
_isDistinctboolA field that indicates whether this QueryColumn must be marked as DISTINCT in result SQL statement.
ParamsQueryParamListThe parameters associated with this column
parentQueryColumnStoreParent columns storage.
sortingSortDirectionQueryColumn sorting direction
NameTypeDescription
AliasstringGets or Sets the column alias.
AllowSortingboolGets a value indicating whether this column can be sorted.
BaseAttrEntityAttrGets the entity attribute (EntityAttr object) this column is based on.
CaptionstringGets or sets the column caption.
DataTypeDataTypeGets the data type of the column.
ExprEqExpressionGets or sets the column expression.
ExprTypeintGets or sets the tag (type) of the expression.
IdstringThe column’s Id.
IndexintGets the index of column in column list.
IsAggregateboolGets a value indicating whether this is aggregate.
IsDistinctboolGets or sets a value indicating whether this QueryColumn must be marked as DISTINCT in result SQL statement.
IsEnabledboolGets or sets a value indicating whether this column is enabled. Only enabled columns will participates in the query.
IsHiddenboolGets or sets a value indicating whether this QueryColumn is hidden - it will participate in the query but is not shown in the result set.
IsJustSortingboolGets a value indicating whether this column is just sorting one (will not be shown in query result).
IsReadOnlyboolGets or sets a value indicating whether this columns marked as read only.
ModelDataModelGets or sets the reference to the data model where this column is defined.
ParentQueryColumnStoreGets or sets the parent columns storage.
ParentQueryQueryGets the parent query.
SortIndexintGets or sets the index of the column in the sorting list. Is used to load the column from XML.
SortingSortDirectionGets or sets the sorting direction.
SystemTypeTypeGets the system type of this column.
UserDatastringGets or sets users data for the column
NameTypeDescription
ColumnChangedEventHandlerIndicates that column was changed.
NameTypeDescription
CheckDataModel()voidChecks the data model object. Generates an exception if Model property has null value.
ExprChangeHandler(object sender, EventArgs e)voidExpression’s Change event handler.
GetAttribute()EntityAttrGets the attribute associated with this column
GetHashCode()intReturns hash code for column
LoadFromXmlReader(XmlReader reader)voidLoads definition from XML.
OnColumnChanged(int part)voidRaises the ColumnChanged event.
OnColumnChanging(int part)boolCalled when the column is about to change.
ReadFromJsonAsync(JsonReader reader)TaskLoads column from JSON reader (asynchronous way). Calls Korzh.EasyQuery.QueryColumn.ReadOnePropFromJsonAsync(Newtonsoft.Json.JsonReader,System.String)
ReadOnePropFromJsonAsync(JsonReader reader, string propName)TaskReads the property from JSON reader or skip unused (asynchronous way).
RecreateExpression(int tag)voidRecreates the column expression.
RegenerateCaption()voidRegenerates the column caption.
SaveToXmlWriter(XmlWriter writer)voidSaves the column definition to XML.
WritePropertiesToJsonAsync(JsonWriter writer)TaskSaves content of the column to JSON (asynchronous way).
WriteToJsonAsync(JsonWriter writer)TaskSaves the column definition to JSON (asynchronous way). Calls Korzh.EasyQuery.QueryColumn.WritePropertiesToJsonAsync(Newtonsoft.Json.JsonWriter).