ConfigureEasyQueryOptions(EasyQueryOptions options) | void | This method should be overriden in the derived classes to configure the options of EasyQueryManager used in this controller. |
CreateEasyQueryManager(EasyQueryOptions options) | EasyQueryManager | Creates an instance of Korzh.EasyQuery.Services.EasyQueryManager that is used to handle all controller's actions. |
Dispose(bool disposing) | void | Releases the unmanaged resources that are used by the object and, optinally, releases the managed resources |
EqError(string message) | EqErrorHttpActionResult | Creates and returns an instance of Korzh.EasyQuery.AspNet.EqErrorHttpActionResult class for the current request and with the specified error message. |
EqError(Exception exception) | EqErrorHttpActionResult | Creates and returns an instance of Korzh.EasyQuery.AspNet.EqErrorHttpActionResult class for the current request and with the specified error message. |
EqOk() | EqOkHttpActionResult | Creates and returns an instance of Korzh.EasyQuery.AspNet.EqOkHttpActionResult class for the current request |
EqOk(object data) | EqOkHttpActionResult | Creates and returns an instance of Korzh.EasyQuery.AspNet.EqOkHttpActionResult class for the current request |
ExportResultAsync(string modelId, string queryId, string formatType, CancellationToken ct) | Task <HttpResponseMessage > | Handles the ExportResult request. This action builds the query passed in the request's body, get the result set in the specified format and sends it back in a response with an attachment Content-Disposition (so it's downloaded and saved locally) |
ExportResultAsync(string modelId, string formatType, CancellationToken ct) | Task <HttpResponseMessage > | Handles the ExportResult request. This action builds the query passed in the request's body, get the result set in the specified format and sends it back in a response with an attachment Content-Disposition (so it's downloaded and saved locally) |
FetchDataAsync(string modelId, CancellationToken ct) | Task <IHttpActionResult > | Handles the "FetchData" request. This handler receives a query JSON in the request's body, builds a query (an SQL or LINQ), executes it and return the result set (again in JSON format). |
GetLicenseKey() | IHttpActionResult | Handles the "GetLicenseKey" request. Returns the JS key defined at Korzh.EasyQuery.AspNet.JSLicense.Key. |
GetLicenseKey2() | IHttpActionResult | Handles the "GetLicenseKey (v2)" request. Returns the license key and the type of backend. |
GetModelAsync(string modelId, CancellationToken ct) | Task <IHttpActionResult > | Handles the "GetModel" request. Returns the data model represenation (in JSON format) by its ID. |
GetQueryAsync(string modelId, string queryId, CancellationToken ct) | Task <IHttpActionResult > | Handles the "GetQuery" request. Returns the query represenation (in JSON) by its ID and the ID of the corresponding data model. |
GetQueryFileAsync(string modelId, string format, CancellationToken ct) | Task <HttpResponseMessage > | Handles GetQueryFile request. Returns a query in a response with an attachment Content-Disposition (so it's downloaded and saved locally) |
GetQueryListAsync(string modelId, CancellationToken ct) | Task <IHttpActionResult > | Handles the "GetQueryList" request and returns the list of saved queries for a particular model. |
GetValueListAsync(string modelId, string editorId, CancellationToken ct) | Task <IHttpActionResult > | Handles the "GetValueList" request. Returs the list of values for a particular value editor. |
NewQueryAsync(string modelId, CancellationToken ct) | Task <IHttpActionResult > | Handles the "NewQuery" request and returns a JSON representation of a new new empty query for a particular data model. |
PutLicenseKeyAsync() | Task <IHttpActionResult > | Handles the "GetLicenseKey" request. Returns the JS key defined at Korzh.EasyQuery.AspNet.JSLicense.Key. |
RemoveQueryAsync(string modelId, string queryId, CancellationToken ct) | Task <IHttpActionResult > | Handles the "RemoveQuery" request and remove the query with the specified ID from the storage. |
SaveQueryAsync(string modelId, string queryId, CancellationToken ct) | Task <IHttpActionResult > | Handles the "SaveQuery" request for specified model and query. The JSON representation of the query should be passed in the request's body. |
SyncQueryAsync(string modelId, string queryId, CancellationToken ct) | Task <IHttpActionResult > | Handles the "SyncQuery" request. This action gets a JSON representation of the query in request's body and passes it SyncQuery method of EasyQueryManager. The manager can save the query and/or build it and return SQL statement (depending on options) |
UpdateModelFormatVersionJson(DataModel model) | void | Sets an old format of JSON representation of the model for the requests from EQ.JS 5.x or earlier. |
UploadQueryFileAsync(string modelId, CancellationToken ct) | Task <IHttpActionResult > | Handles UploadQueryFile request. The query file is sent in the request's body with a multipart/form-data Content-Type. |