AddValueListResolver(IValueListResolver valueListResolver) |
void |
Adds the value list resolver to the internal list of list resolvers which will be used during GetList request processing |
ApplyPreFetchTuners() |
void |
Applys all pre execute tuners |
BuildQuery(QueryBuilderOptions options = null) |
IQueryStatement |
Builds a Korzh.EasyQuery.IQueryStatement object by the Korzh.EasyQuery.Services.EasyQueryManager.Query and returns the built statement. |
CheckModel() |
void |
Checks if the current Model is not null and throws an exception otherwise. |
CheckQuery() |
void |
Checks if the current Query is not null and throws an exception otherwise. |
CreateModelCore(string modelId = null) |
DataModel |
Creates the new DataModel object |
CreateQuery() |
Query |
Creates and initializes a new Query object. |
CreateQueryAsync(string modelId = null) |
Task <Query> |
Creates new Query object. |
CreateQueryBuilderCore() |
IQueryBuilder |
Creates an instance of Korzh.EasyQuery.IQueryBuilder |
CreateQueryCore() |
Query |
Creates a new Query object. |
Dispose(bool disposing) |
void |
Releases unmanaged and - optionally - managed resources. |
Dispose() |
void |
Releases unmanaged and - optionally - managed resources. |
ExportResultSetAsync(IEqResultSet data, string format, Stream stream) |
Task |
Executes the query and exports the result to a specified format. To run this operation we need to register an appropriate exporter first. |
FetchDataAsync() |
Task <IEqResultSet> |
Executes the query and returns an object which implments IEqResultSet interface. |
FetchDataCoreAsync() |
Task <IEqResultSet> |
The actual implemenation of Korzh.EasyQuery.Services.EasyQueryManager.FetchDataAsync function. This method is overridden in EasyQueryManager descendants like EasyQueryManagerSql or EasyQueryManagerLinq. |
GenerateQueryId(string name) |
string |
Generates the query identifier. |
GetContentTypeByExportFormat(string format) |
string |
Gets the content type by export format. |
GetDataExportSettings(string format) |
IDataExportSettings |
Gets the data export settings. |
GetListCoreAsync(ListRequestOptions options) |
Task <IEnumerable <ListItem>> |
The basic implemenation of GetList action handler. Can be overrided in the derived classes. |
GetModelAsync(string modelId) |
Task <DataModel> |
Gets the DbModel object by ID. |
GetQueryAsync(string modelId, string queryId) |
Task <Query> |
Gets the Query object by name. |
GetQueryListAsync(string modelId) |
Task <IEnumerable <QueryListItem>> |
Gets the list of available queries. |
GetQueryListCoreAsync(string modelId) |
Task <IEnumerable <QueryListItem>> |
Basic implementation of Korzh.EasyQuery.Services.EasyQueryManager.GetQueryListAsync(System.String) method. This method just calls corresponding function of the QueryStore. Can be overriden in derived classes. |
GetValueFromCache(string key) |
string |
Gets some string value from session by its key. |
GetValueListAsync(string modelId, string editorId, IDictionary <string , string > options = null) |
Task <IEnumerable <ListItem>> |
Returns custom list of values by editorId. This method is usually called by GetList action of EasyQueryController. |
InitQueryAsync() |
Task |
Initializes the new query and saves it to the storage (if SaveNewQueryToStore is turned on). |
InitQueryCoreAsync() |
Task |
Initializes the new query. Does nothing in the base class. Can be overriden in the derived classes. |
JsonToListRequestOptions(string optionsJson) |
ListRequestOptions |
Converts JsonDict object to ListRequestOptions |
LoadModelAsync(string modelId) |
Task |
Loads model by its ID. |
LoadModelFromCacheAsync(string modelId) |
Task <bool > |
Loads DataModel from cache by ID (name) |
LoadQueryAsync(string modelId, string queryId) |
Task |
|
LoadQueryFromCacheAsync(string queryId) |
Task <bool > |
Loads Query from cache by ID |
QueryUpdated() |
void |
Calls Korzh.EasyQuery.Services.EasyQueryManager.QueryTuner |
ReadClientOptions(JObject clientOptions) |
void |
|
ReadOneRequestPropertyAsync(string modelId, JsonReader reader, string propName) |
Task |
Read one property from a request's JSON object. |
ReadRequestContentFromJsonAsync(string modelId, JsonReader reader) |
Task |
Reads the content of the client-side request from a JsonReader object. |
ReadRequestContentFromTextReaderAsync(string modelId, TextReader reader) |
Task |
Loads all reaquest's data (like query, options, etc) from the text reader. |
RemoveQueryAsync(string modelId, string queryId) |
Task <bool > |
Removes the query. This method uses the functionality provided by the current query store. |
SaveModelInCacheAsync() |
Task |
Saves model into cache |
SaveQueryInCacheAsync() |
Task |
Saves query into cache |
SaveQueryToStoreAsync(bool createIfNotExist = True) |
Task <bool > |
Saves the current query to the query store. |
SaveValueInCache(string key, string value) |
void |
Stores some string value in cache. |
SyncQueryAsync() |
Task |
Synchronizes the query. |
SyncQueryCoreAsync() |
Task |
Synchronizes the query. This is the default implementation which can be ovverride in derived classes. |
TuneBuilder(IQueryBuilder builder) |
void |
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. |