AddAggregateColumn(string attrId, string funcId, string caption = null, SortDirection sorting = 0) |
QueryColumn |
Creates a new aggregate column by attribute's ID and aggregate function nameand. |
AddColumn(IColumnDescriptor& desc) |
QueryColumn |
Creates a new column by descriptor and adds it into query. |
AddConditionGroup(Condition parent = null, int index = -1) |
Condition |
Creates a new condition group and adds it into the query. |
AddDrillDown() |
Query |
|
AddSimpleColumn(string attrId, string caption = null, SortDirection sorting = 0) |
QueryColumn |
Creates a new column by attribute's ID and adds it into query. |
BeginUpdate() |
void |
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. |
CheckDataModel() |
void |
Checks the data model object. Generates an exception if Model property has null value. |
CheckModelObject(DataModel model) |
void |
Checks if model object has appropriate type and raise exception if not |
CleanUp() |
void |
Clean up this query instance. This method removes columns and conditions with "ghost" attributes or operators |
Clear() |
void |
Clears the query conditions and result columns. |
CoreClear() |
void |
Clears all query content. Can be overriden in derived classes. |
CreateAggregateColumn(string attrId, string funcId, string caption = null, SortDirection sorting = 0) |
QueryColumn |
Creates an aggregate column. |
CreateAggrFuncExpr(string funcID, EqExpression argumentExpr) |
AggrFuncExpr |
Creates an aggregate function expression. |
CreateColumn(EqExpression expr = null, string caption = null, SortDirection sortDirection = 0) |
QueryColumn |
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) |
CreateColumn(IColumnDescriptor& modreq(System.Runtime.InteropServices.InAttribute) desc) |
QueryColumn |
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) |
CreateColumnCore() |
QueryColumn |
Creates the column object. Can be overridden in descendant classes |
CreateConditionGroup() |
Condition |
Creates a new condition group. |
CreateEntityAttrExpr(EntityAttr attr) |
EntityAttrExpr |
Creates an entity attribute expression. |
CreateEntityAttrExpr(string attrId) |
EntityAttrExpr |
Creates an entity attribute expression. |
CreateParentColumnExpr(QueryColumn column, string name = ) |
ParentColumnExpr |
Creates a parent column expression. |
CreateParentColumnExpr(string columnId, string name = ) |
ParentColumnExpr |
Creates a parent column expression. |
CreateParentEntityAttrExpr(EntityAttr attr) |
EntityAttrExpr |
Creates a parent entity attribute expression. |
CreateQueryExpr() |
EqExpression |
Creates a sub-query expression. |
CreateRootCondition() |
Condition |
Creates the root condition. |
CreateSilentConditionGroup() |
Condition |
Creates a new "silent" condition gropu. Here "silent" means neither this group nor its conditions will raise ConditionsChanged event in associated query |
CreateSimpleColumn(EntityAttr attr, string caption = null, SortDirection sorting = 0) |
QueryColumn |
Creates a column by EntityAttr object. |
CreateSimpleColumn(string attrId, string caption = null, SortDirection sorting = 0) |
QueryColumn |
Creates a column by EntityAttr object. |
CreateSimpleCondition() |
Condition |
Creates a simple condition. |
CreateSimpleCondition(string attrId, string operatorId = null, String[] values) |
Condition |
Creates a simple condition. |
CreateSimpleCondition(EntityAttr attr, Operator op, String[] values) |
Condition |
Creates a simple condition. |
CreateSimpleCondition(string attrId, string operatorId, EqExpression[] values) |
Condition |
Creates a simple condition. |
CreateSimpleCondition(EntityAttr attr, Operator op, EqExpression[] exprs) |
Condition |
Creates a simple condition. |
CreateSubQuery() |
Query |
Creates the subquery. |
EndUpdate() |
void |
Turns the "updating" state off. |
GetConditionsText(QueryTextFormats formats) |
string |
Returns human-readable text that represents current query conditions |
GetOneValueForAttr(EntityAttr attr) |
string |
Gets the one value set in some query condition for indicated entity attribute |
GetParentQueryRootEntity() |
Entity |
Gets the entities from parent query. |
LoadFromJsonFile(string filePath) |
void |
Loads the query's content from a JSON file. |
LoadFromJsonFile(string filePath, BitOptions rwOptions) |
void |
Loads the query's content from a JSON file. |
LoadFromJsonFileAsync(string fileName) |
Task |
Loads the query's content from a JSON file (asynchronous way). |
LoadFromJsonFileAsync(string fileName, BitOptions rwOptions) |
Task |
Loads the query's content from a JSON file (asynchronous way). |
LoadFromJsonObject(JObject jObject) |
void |
Loads query from Newtonsoft.Json.Linq.JObject . |
LoadFromJsonObject(JObject jObject, BitOptions rwOptions) |
void |
Loads query from Newtonsoft.Json.Linq.JObject . |
LoadFromJsonObjectAsync(JObject jObject) |
Task |
Loads query from Newtonsoft.Json.Linq.JObject (asynchronous way). |
LoadFromJsonObjectAsync(JObject jObject, BitOptions rwOptions) |
Task |
Loads query from Newtonsoft.Json.Linq.JObject (asynchronous way). |
LoadFromJsonStream(Stream stream) |
void |
Loads query from stream containing the JSON |
LoadFromJsonStream(Stream stream, BitOptions rwOptions) |
void |
Loads query from stream containing the JSON |
LoadFromJsonStreamAsync(Stream stream) |
Task |
Loads query from stream containing the JSON (asynchronous way). |
LoadFromJsonStreamAsync(Stream stream, BitOptions rwOptions) |
Task |
Loads query from stream containing the JSON (asynchronous way). |
LoadFromJsonString(string json) |
void |
Loads query from string containing the JSON. |
LoadFromJsonString(string json, BitOptions rwOptions) |
void |
Loads query from string containing the JSON. |
LoadFromJsonStringAsync(string json) |
Task |
Loads query from string containing the JSON (asynchronous way). |
LoadFromJsonStringAsync(string json, BitOptions rwOptions) |
Task |
Loads query from string containing the JSON (asynchronous way). |
LoadFromXmlFile(string path) |
void |
Loads query from XML file. |
LoadFromXmlFile(string path, BitOptions options) |
void |
Loads query from XML file. |
LoadFromXmlReader(XmlReader reader) |
void |
Loads query from XML reader. |
LoadFromXmlReader(XmlReader reader, BitOptions options) |
void |
Loads query from XML reader. |
LoadFromXmlStream(Stream stream) |
void |
Loads query from XML stream. |
LoadFromXmlStream(Stream stream, BitOptions options) |
void |
Loads query from XML stream. |
LoadFromXmlString(string xml) |
void |
Loads query from XML string. |
LoadFromXmlString(string xml, BitOptions options) |
void |
Loads query from XML string. |
LoadNode(XmlReader reader, BitOptions rwOptions) |
void |
Loads the root node. |
NewModel() |
DataModel |
Creates new model object of appropriate type. |
OnSortOrderChanged(SortOrderChangedEventArgs e) |
void |
Raises the SortOrderChanged event. |
OnSubQueryConditionsChanged(ConditionsChangeEventArgs e) |
void |
Raises the SubQueryConditionsChanged event. |
ReadFromJson(JsonReader reader) |
void |
Loads query from JSON reader. Calls See Korzh.EasyQuery.Query.ReadFromJsonAsync(Newtonsoft.Json.JsonReader,EasyData.BitOptions) function. |
ReadFromJson(JsonReader reader, BitOptions rwOptions) |
void |
Loads query from JSON reader. Calls See Korzh.EasyQuery.Query.ReadFromJsonAsync(Newtonsoft.Json.JsonReader,EasyData.BitOptions) function. |
ReadFromJsonAsync(JsonReader reader) |
Task |
Loads query from JSON reader. Calls See Korzh.EasyQuery.Query.ReadOnePropFromJsonAsync(Newtonsoft.Json.JsonReader,System.String,EasyData.BitOptions) function. |
ReadFromJsonAsync(JsonReader reader, BitOptions rwOptions) |
Task |
Loads query from JSON reader. Calls See Korzh.EasyQuery.Query.ReadOnePropFromJsonAsync(Newtonsoft.Json.JsonReader,System.String,EasyData.BitOptions) function. |
ReadOnePropFromJsonAsync(JsonReader reader, string propName, BitOptions rwOptions) |
Task |
Reads the property from JSON reader or skip unused. |
ResolveDataModelAsync(string modelId) |
Task |
Resolves the data model by its ID |
SaveNodes(XmlWriter writer, BitOptions rwOptions) |
void |
Saves the root nodes. |
SaveToJsonFile(string filePath) |
void |
Saves query to a file in JSON format. |
SaveToJsonFile(string filePath, BitOptions rwOptions) |
void |
Saves query to a file in JSON format. |
SaveToJsonFileAsync(string filePath) |
Task |
Saves query to a file in JSON format (asynchronous way). |
SaveToJsonFileAsync(string filePath, BitOptions rwOptions) |
Task |
Saves query to a file in JSON format (asynchronous way). |
SaveToJsonObject() |
JObject |
Saves query to Newtonsoft.Json.Linq.JObject . |
SaveToJsonObject(BitOptions rwOptions) |
JObject |
Saves query to Newtonsoft.Json.Linq.JObject . |
SaveToJsonObjectAsync() |
Task <JObject > |
Saves query to Newtonsoft.Json.Linq.JObject (asynchronous way). |
SaveToJsonObjectAsync(BitOptions rwOptions) |
Task <JObject > |
Saves query to Newtonsoft.Json.Linq.JObject (asynchronous way). |
SaveToJsonStream(Stream stream) |
void |
Saves query to a stream in JSON format. |
SaveToJsonStream(Stream stream, BitOptions rwOptions) |
void |
Saves query to a stream in JSON format. |
SaveToJsonStreamAsync(Stream stream) |
Task |
Saves query to a stream in JSON format (asynchronous way). |
SaveToJsonStreamAsync(Stream stream, BitOptions rwOptions) |
Task |
Saves query to a stream in JSON format (asynchronous way). |
SaveToJsonString() |
string |
Saves query to string containing the JSON. |
SaveToJsonString(BitOptions rwOptions) |
string |
Saves query to string containing the JSON. |
SaveToJsonStringAsync() |
Task <string > |
Saves query to string containing the JSON (asynchronous way). |
SaveToJsonStringAsync(BitOptions rwOptions) |
Task <string > |
Saves query to string containing the JSON (asynchronous way). |
SaveToXmlFile(string path) |
void |
Saves query to XML file. |
SaveToXmlFile(string path, BitOptions options) |
void |
Saves query to XML file. |
SaveToXmlStream(Stream stream) |
void |
Saves query XML to stream. |
SaveToXmlStream(Stream stream, BitOptions options) |
void |
Saves query XML to stream. |
SaveToXmlString() |
string |
Saves query to string containing the XML. |
SaveToXmlString(BitOptions options) |
string |
Saves query to string containing the XML. |
SaveToXmlWriter(XmlWriter writer) |
void |
Saves query to XML using XML writer. |
SaveToXmlWriter(XmlWriter writer, BitOptions rwOptions) |
void |
Saves query to XML using XML writer. |
SetModel(DataModel newModel) |
void |
Sets the data model and performs some initialization procedures. |
Validate() |
void |
Validates this query instance. This method throws an exception if query has "ghost" attributes |
WritePropertiesToJsonAsync(JsonWriter writer, BitOptions rwOptions) |
Task |
Saves content of the query to JSON (asynchronous way). |
WriteToJson(JsonWriter writer) |
void |
Saves query to JSON using JSON writer. |
WriteToJson(JsonWriter writer, BitOptions rwOptions) |
void |
Saves query to JSON using JSON writer. |
WriteToJsonAsync(JsonWriter writer) |
Task |
Saves query to JSON using JSON writer (asynchronous way). Calls Korzh.EasyQuery.Query.WriteToJsonAsync(Newtonsoft.Json.JsonWriter,EasyData.BitOptions) function. |
WriteToJsonAsync(JsonWriter writer, BitOptions rwOptions) |
Task |
Saves query to JSON using JSON writer (asynchronous way). Calls Korzh.EasyQuery.Query.WriteToJsonAsync(Newtonsoft.Json.JsonWriter,EasyData.BitOptions) function. |