void |
AddValueListResolver(IValueListResolver valueListResolver) |
Adds the value list resolver to the internal list of list resolvers which will be used during GetList request processing |
QueryBuilderResult |
BuildQuery(JObject options = null, Boolean addPaging = False) |
Builds SQL statement by the DbQuery object. This methods calls QueryBuilder delegate to build SQL. |
void |
CheckModel() |
Checks if the current Model is not null and throws an exception otherwise. |
void |
CheckQuery() |
Checks if the current Query is not null and throws an exception otherwise. |
DataModel |
CreateModelCore(String modelId) |
Creates the new DataModel object |
Task<Query> |
CreateQueryAsync(String modelId = null) |
Creates new Query object. |
Query |
CreateQueryCore(DataModel model) |
Creates new Query object. |
Task<Query> |
CreateQueryIfNotExistsAsync(String modelId) |
Creates the query if it does not exist. |
IEqResultSet |
ExecuteQuery(JObject options = null) |
Executes the query and returns an object which implments IEqResultSet interface. |
IEqResultSet |
ExecuteQueryCore(JObject options = null) |
The actual implemenation of ExecuteQuery function. This method is overridden in EasyQueryManagerBase descendants like EasyQueryManagerSql or EasyQueryManagerLinq. |
Task |
ExportQueryResultAsync(String format, TextWriter writer) |
Executes the query and exports the result to a specified format. To run this operation we need to register an appropriate exporter first. |
String |
GenerateQueryId(String name) |
Generates the query identifier. |
String |
GetContentTypeByExportFormat(String format) |
Gets the content type by export format. |
IDataExportSettings |
GetDataExportSettings(String format) |
Gets the data export settings. |
IDataReader |
GetDataReader(JObject options = null, Boolean addPaging = False) |
Gets the data reader by query. This function is called from ExecuteQuery or ExportQueryResult. |
Task<IEnumerable<ListItem>> |
GetListCoreAsync(ListRequestOptions options) |
The basic implemenation of GetList action handler. Can be overrided in the derived classes. |
Task<DataModel> |
GetModelAsync(String modelId) |
Gets the DbModel object by ID. |
Task<DataModel> |
GetModelCoreAsync(String modelId) |
The basic implementation of the GetModel action which can be overidden in the derived classes. |
Task<Query> |
GetQueryAsync(String modelId, String queryId) |
Gets the Query object by name. |
IQueryBuilder |
GetQueryBuilder(Query query, JObject options = null) |
Gets the registered query builder. |
IQueryBuilder |
GetQueryBuilderCore(Query query, JObject options) |
|
Task<Query> |
GetQueryCoreAsync(String modelId, String queryId) |
The basic implementation of the GetQuery action which can be overidden in the derived classes. |
Task<IEnumerable<QueryListItem>> |
GetQueryListAsync(String modelId) |
Gets the list of available queries. |
Task<IEnumerable<QueryListItem>> |
GetQueryListCoreAsync(String modelId) |
Basic implementation of Korzh.EasyQuery.Services.EasyQueryManager.GetQueryList(System.String) method. This method just calls corresponding function of the QueryStore. Can be overriden in derived classes. |
String |
GetValueFromCache(String key) |
Gets some string value from session by its key. |
Task<IEnumerable<ListItem>> |
GetValueListAsync(String modelId, String editorId) |
Returns custom list of values by editorId. This method is usually called by GetList action of EasyQueryController. |
Task |
InitQueryAsync() |
Initializes the new query and saves it to the storage (if SaveNewQueryToStore is turned on). |
Task |
InitQueryCoreAsync() |
Initializes the new query. Does nothing in the base class. Can be overriden in the derived classes. |
ListRequestOptions |
JsonToListRequestOptions(String optionsJson) |
Converts JsonDict object to ListRequestOptions |
Boolean |
LoadModelFromCache(DataModel model, String modelId) |
Loads DataModel from cache by ID (name) |
void |
LoadOptions(String optionsJson) |
Loads different options from JsonDict object (usually created by JSON deserialization). |
Boolean |
LoadQueryFromCache(Query query, String queryId) |
Loads Query from cache by ID |
Task |
ReadOneRequestPropertyAsync(String modelId, JsonReader reader, String propName) |
Read one property from a request's JSON object. |
Task |
ReadRequestContentFromJsonAsync(String modelId, JsonReader reader) |
Reads the content of the client-side request from a JsonReader object. |
Task |
ReadRequestContentFromTextReaderAsync(String modelId, TextReader reader) |
Loads all reaquest's data (like query, options, etc) from the text reader. |
Task<Boolean> |
RemoveQueryAsync(String modelId, String queryId) |
Removes the query. This method uses the functionality provided by the current query store. |
void |
SaveModelInCache(DataModel model) |
Saves model into cache |
void |
SaveQueryInCache(Query query) |
Saves query into cache |
Task<Boolean> |
SaveQueryToStoreAsync() |
Saves the current query to the query store. |
void |
SaveValueInCache(String key, String value) |
Stores some string value in cache. |
void |
SyncQuery() |
Synchronizes the query. |
void |
SyncQueryCore() |
Synchronizes the query. This is the default implementation which can be ovverride in derived classes. |
Task<Boolean> |
TryLoadModelAsync(DataModel model, String modelId) |
Tries to load the model from the storage. |
Task<Boolean> |
TryLoadQueryAsync(Query query, String queryId) |
Tries to load the query. |
void |
TuneBuilder(IQueryBuilder builder) |
Allows to tune the formats of the query builder. The default implementation calls all builder tuners defined in _builderTuners list. You can override this function in your sub-class to implement some custom behavior. |