Skip to content

ColumnStore class

Represents list of result columns.

public class Korzh.EasyQuery.ColumnStore
: ColumnList, IList<Column>, ICollection<Column>, IEnumerable<Column>, IEnumerable, IList, ICollection, IReadOnlyList<Column>, IReadOnlyCollection<Column>
TypeNameDescription
QueryparentQueryThe reference to parent Query object
TypeNameDescription
BooleanIsJustSortingGets a value indicating whether this instance of the column store is used for “just sorting” columns.
BooleanIsUpdatingGets a value indicating whether this Korzh.EasyQuery.ColumnList is updating.
DataModelModelGets the DataModel object associated with this list
QueryParentQueryGets the parent query.
SortedColumnListSortedColumnsGets the list of sorted columns.
TypeNameDescription
ColumnsChangedEventHandlerColumnsChangedOccurs after column list has been changed.
ColumnsChangingEventHandlerColumnsChangingOccurs when columns list is going to be changed.
TypeNameDescription
voidBeginUpdate()Turns on the “updating” state. Any changes occured during this state will not initiate Korzh.EasyQuery.ColumnStore.ColumnsChanged event until Korzh.EasyQuery.ColumnStore.EndUpdate is called.
voidClearItems()Removes all elements from the System.Collections.ObjectModel.Collection'1.
voidCoreRefreshParams()Refreshes the list of query parameters by parameters associated with attributes used in query columns .
voidEndUpdate()Turns the “updating” state off.
voidInsertItem(Int32 index, Column item)Inserts an element into the System.Collections.ObjectModel.Collection'1 at the specified index.
BooleanIsColumnsChangeAccepted(ChangeType what, Column column, Int32 info)Calls ColumnsChanging event and return boolean value that indicates whether the change is accepted.
voidLoadFromXmlReader(XmlReader reader)Loads the column list using System.Xml.XmlReader object.
voidMove(Int32 index, Int32 newIndex)Moves the specified index of the current.
voidOnColumnsChanged(ColumnsChangeEventArgs e)Raises the ColumnsChanged event.
voidOnColumnsChanging(ColumnsChangingEventArgs e)Raises the ColumnsChanging event.
voidReadFromJson(JsonReader reader)Loads the column list using Newtonsoft.Json.JsonReader object.
TaskReadFromJsonAsync(JsonReader reader)Loads the column list using Newtonsoft.Json.JsonReader object (asynchronous way).
voidRefreshParams()
voidRemoveItem(Int32 index)Removes the element at the specified index of the System.Collections.ObjectModel.Collection'1.
voidResyncSortingList(Boolean changeInnerIndex)Resynchronizes the sorting list of columns correspondingly to their order.
voidSaveToXmlWriter(XmlWriter writer, String tagName)Saves the column list to XML.
voidUpdateModel()
voidWriteToJson(JsonWriter writer)Saves the column list using Newtonsoft.Json.JsonWriter object.
TaskWriteToJsonAsync(JsonWriter writer)Saves the column list using Newtonsoft.Json.JsonWriter object (asynchronous way).