Skip to main content

querycolumn-class

Represents some column which will be queried.

public class Korzh.EasyQuery.QueryColumn

Assembly: Korzh.EasyQuery.dll

Fields

NameTypeDescription
_captionstringQueryColumn caption
_isDistinctboolA field that indicates whether this QueryColumn must be marked as DISTINCT in result SQL statement.
_sortingSortDirectionQueryColumn sorting direction
ParamsQueryParamListThe parameters associated with this column
parentQueryColumnStoreParent columns storage.

Properties

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.
DisplayFormatstring
ExprEqExpressionGets or sets the column expression.
ExprTypeintGets or sets the tag (type) of the expression.
GroupFooterColumnTemplatestringGets or sets a template format for column for group rows
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

Events

NameTypeDescription
ColumnChangedEventHandlerIndicates that column was changed.

Methods

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, CancellationToken ct = null)TaskLoads column from JSON reader (asynchronous way). Calls Korzh.EasyQuery.QueryColumn.ReadOnePropFromJsonAsync(Newtonsoft.Json.JsonReader,System.String,System.Threading.CancellationToken)
ReadOnePropFromJsonAsync(JsonReader reader, string propName, CancellationToken ct)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, CancellationToken ct)TaskSaves content of the column to JSON (asynchronous way).
WriteToJsonAsync(JsonWriter writer, CancellationToken ct = null)TaskSaves the column definition to JSON (asynchronous way). Calls Korzh.EasyQuery.QueryColumn.WritePropertiesToJsonAsync(Newtonsoft.Json.JsonWriter,System.Threading.CancellationToken).