Column | AddAggregateColumn(String attrId, String funcId, String caption = null, SortDirection sorting = None) | Creates a new aggregate column by attribute’s ID and aggregate function nameand. |
Condition | AddConditionGroup(Condition parent = null, Int32 index = -1) | Creates a new condition group and adds it into the query. |
Column | AddSimpleColumn(String attrId, String caption = null, SortDirection sorting = None) | Creates a new column by attribute’s ID and adds it into query. |
void | BeginUpdate() | Turns on the “updating” state. Any changes occured during this state will not initiate any “changed” event (like Korzh.EasyQuery.Query.ColumnsChanged or Korzh.EasyQuery.Query.ConditionsChanged) until Korzh.EasyQuery.Query.EndUpdate is called. |
void | CheckDataModel() | Checks the data model object. Generates an exception if Model property has null value. |
void | CheckModelObject(DataModel model) | Checks if model object has appropriate type and raise exception if not |
void | Clear() | Clears the query conditions and result columns. |
void | CoreClear() | Clears all query content. Can be overriden in derived classes. |
Column | CreateAggregateColumn(String attrId, String funcId, String caption = null, SortDirection sorting = None) | Creates an aggregate column. |
AggrFuncExpr | CreateAggrFuncExpr(String funcID, EqExpression argumentExpr) | Creates an aggregate function expression. |
Column | CreateColumn(EqExpression expr = null, String caption = null, SortDirection sortDirection = None) | Creates an empty column. If expr and caption parameters are not used they must be set later (to make the new object a proper column) |
Column | CreateColumnCore() | Creates the column object. Can be overridden in descendant classes |
Condition | CreateConditionGroup() | Creates a new condition group. |
EntityAttrExpr | CreateEntityAttrExpr(EntityAttr attr) | Creates an entity attribute expression. |
EntityAttrExpr | CreateEntityAttrExpr(String attrId) | Creates an entity attribute expression. |
QueryFormats | CreateFormats() | Creates an instance of QueryFormats (or its descendant). |
EntityAttrExpr | CreateParentEntityAttrExpr(EntityAttr attr) | Creates a parent entity attribute expression. |
EqExpression | CreateQueryExpr() | Creates a sub-query expression. |
Condition | CreateRootCondition() | Creates the root condition. |
Condition | CreateSilentConditionGroup() | Creates a new “silent” condition gropu. Here “silent” means neither this group nor its conditions will raise ConditionsChanged event in associated query |
Column | CreateSimpleColumn(EntityAttr attr, String caption = null, SortDirection sorting = None) | Creates a column by EntityAttr object. |
Column | CreateSimpleColumn(String attrId, String caption = null, SortDirection sorting = None) | Creates a column by EntityAttr object. |
Condition | CreateSimpleCondition() | Creates a simple condition. |
Condition | CreateSimpleCondition(String attrId, String operatorId = null, String[] values) | Creates a simple condition. |
Condition | CreateSimpleCondition(String attrId, String operatorId, EqExpression[] values) | Creates a simple condition. |
Condition | CreateSimpleCondition(EntityAttr attr, Operator op, EqExpression[] exprs) | Creates a simple condition. |
Query | CreateSubQuery() | Creates the subquery. |
void | EndUpdate() | Turns the “updating” state off. |
String | GetConditionsText(QueryTextFormats formats) | Returns human-readable text that represents current query conditions |
QueryFormats | GetFormats() | Gets query formats (an instance of Korzh.EasyQuery.QueryFormats class). |
String | GetOneValueForAttr(EntityAttr attr) | Gets the one value set in some query condition for indicated entity attribute |
Entity | GetParentQueryRootEntity() | Gets the entities from parent query. |
void | InnerSortOrderChanged(SortOrderChangedEventArgs e) | |
void | LoadFromJsonFile(String fileName, QueryReadWriteOptions rwOptions = All) | Loads the query’s content from a JSON file. |
Task | LoadFromJsonFileAsync(String fileName, QueryReadWriteOptions rwOptions = All) | Loads the query’s content from a JSON file (asynchronous way). |
void | LoadFromJsonObject(JObject jObject, QueryReadWriteOptions rwOptions = All) | Loads query from Newtonsoft.Json.Linq.JObject . |
Task | LoadFromJsonObjectAsync(JObject jObject, QueryReadWriteOptions rwOptions = All) | Loads query from Newtonsoft.Json.Linq.JObject (asynchronous way). |
void | LoadFromJsonStream(Stream stream, QueryReadWriteOptions rwOptions = All) | Loads query from stream containing the JSON |
Task | LoadFromJsonStreamAsync(Stream stream, QueryReadWriteOptions rwOptions = All) | Loads query from stream containing the JSON (asynchronous way). |
void | LoadFromJsonString(String json, QueryReadWriteOptions rwOptions = All) | Loads query from string containing the JSON. |
Task | LoadFromJsonStringAsync(String json, QueryReadWriteOptions rwOptions = All) | Loads query from string containing the JSON (asynchronous way). |
void | LoadFromXmlFile(String path, QueryReadWriteOptions options = All) | Loads query from XML file. |
void | LoadFromXmlReader(XmlReader reader, QueryReadWriteOptions options) | Loads query from XML reader. |
void | LoadFromXmlStream(Stream stream, QueryReadWriteOptions options = All) | Loads query from XML stream. |
void | LoadFromXmlString(String xml, QueryReadWriteOptions options = All) | Loads query from XML string. |
void | LoadNode(XmlReader reader, QueryReadWriteOptions rwOptions) | Loads the root node. |
DataModel | NewModel() | Creates new model object of appropriate type. |
void | OnColumnsChanged(ColumnsChangeEventArgs e) | Raises the ColumnsChanged event. |
void | OnColumnsChanging(ColumnsChangingEventArgs e) | Raises the ColumnsChanging event. |
void | OnConditionsChanged(ConditionsChangeEventArgs e) | Raises the ConditionsChanged event. |
void | OnSortOrderChanged(SortOrderChangedEventArgs e) | Raises the SortOrderChanged event. |
void | OnSubQueryConditionsChanged(ConditionsChangeEventArgs e) | Raises the SubQueryConditionsChanged event. |
void | ReadFromJson(JsonReader reader, QueryReadWriteOptions rwOptions = All) | Loads query from JSON reader. Calls See Korzh.EasyQuery.Query.ReadOnePropFromJsonAsync(Newtonsoft.Json.JsonReader,System.String,Korzh.EasyQuery.QueryReadWriteOptions) function. |
Task | ReadFromJsonAsync(JsonReader reader, QueryReadWriteOptions rwOptions = All) | Loads query from JSON reader. Calls See Korzh.EasyQuery.Query.ReadOnePropFromJsonAsync(Newtonsoft.Json.JsonReader,System.String,Korzh.EasyQuery.QueryReadWriteOptions) function. |
void | ReadOnePropFromJson(JsonReader reader, String propName, QueryReadWriteOptions rwOptions) | Reads the property from JSON reader or skip unused. |
Task | ReadOnePropFromJsonAsync(JsonReader reader, String propName, QueryReadWriteOptions rwOptions) | Reads the property from JSON reader or skip unused. |
void | ResolveDataModel(String modelId) | Resolves the data model by its ID |
void | ResyncSortingList(Boolean changeInnerIndex) | Resynchronizes the sorting list of columns correspondingly to their order. |
void | SaveNodes(XmlWriter writer, QueryReadWriteOptions rwOptions) | Saves the root nodes. |
void | SaveToJsonFile(String filePath, QueryReadWriteOptions rwOptions = Content) | Saves query to a file in JSON format. |
Task | SaveToJsonFileAsync(String filePath, QueryReadWriteOptions rwOptions = Content) | Saves query to a file in JSON format (asynchronous way). |
JObject | SaveToJsonObject(QueryReadWriteOptions rwOptions = Content) | Saves query to Newtonsoft.Json.Linq.JObject . |
Task<JObject> | SaveToJsonObjectAsync(QueryReadWriteOptions rwOptions = Content) | Saves query to Newtonsoft.Json.Linq.JObject (asynchronous way). |
void | SaveToJsonStream(Stream stream, QueryReadWriteOptions rwOptions = Content) | Saves query to a stream in JSON format. |
Task | SaveToJsonStreamAsync(Stream stream, QueryReadWriteOptions rwOptions = Content) | Saves query to a stream in JSON format (asynchronous way). |
String | SaveToJsonString(QueryReadWriteOptions rwOptions = Content) | Saves query to string containing the JSON. |
Task<String> | SaveToJsonStringAsync(QueryReadWriteOptions rwOptions = Content) | Saves query to string containing the JSON (asynchronous way). |
void | SaveToXmlFile(String path, QueryReadWriteOptions options = Content) | Saves query to XML file. |
void | SaveToXmlStream(Stream stream, QueryReadWriteOptions options = Content) | Saves query XML to stream. |
String | SaveToXmlString(QueryReadWriteOptions options = Content) | Saves query to string containing the XML. |
void | SaveToXmlWriter(XmlWriter writer, QueryReadWriteOptions rwOptions) | Saves query to XML using XML writer. |
void | SetModel(DataModel newModel) | Sets the data model and performs some initialization procedures. |
void | Validate() | Validates this query instance. This method throws an exception if query has “ghost” attributes |
void | WritePropertiesToJson(JsonWriter writer, QueryReadWriteOptions rwOptions) | Saves content of the query to JSON. |
Task | WritePropertiesToJsonAsync(JsonWriter writer, QueryReadWriteOptions rwOptions) | Saves content of the query to JSON (asynchronous way). |
void | WriteToJson(JsonWriter writer, QueryReadWriteOptions rwOptions = Content) | Saves query to JSON using JSON writer. Calls Korzh.EasyQuery.Query.WritePropertiesToJson(Newtonsoft.Json.JsonWriter,Korzh.EasyQuery.QueryReadWriteOptions) function. |
Task | WriteToJsonAsync(JsonWriter writer, QueryReadWriteOptions rwOptions = Content) | Saves query to JSON using JSON writer (asynchronous way). Calls Korzh.EasyQuery.Query.WritePropertiesToJsonAsync(Newtonsoft.Json.JsonWriter,Korzh.EasyQuery.QueryReadWriteOptions) function. |