AddValueListResolver(IValueListResolver valueListResolver) | void | Adds the value list resolver to the internal list of list resolvers which will be used during GetList request processing |
ApplyBuilderOptions(IQueryBuilder builder) | void | |
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, `CancellationToken` ct = 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, CancellationToken ct = null) | 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(CancellationToken ct = null) | Task <IEqResultSet> | Executes the query and returns an object which implments IEqResultSet interface. |
FetchDataCoreAsync(CancellationToken ct) | Task <IEqResultSet> | The actual implemenation of Korzh.EasyQuery.Services.EasyQueryManager.FetchDataAsync(System.Threading.CancellationToken) 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. |
GetDataExportTuners() | IEnumerable <IDataExportTuner> | |
GetListCoreAsync(ListRequestOptions options, CancellationToken ct) | Task <IEnumerable <ListItem>> | The basic implemenation of GetList action handler. Can be overrided in the derived classes. |
GetModelAsync(string modelId, CancellationToken ct = null) | Task <DataModel> | Gets the DbModel object by ID. |
GetQueryAsync(string modelId, string queryId, CancellationToken ct = null) | Task <Query> | Gets the Query object by name. |
GetQueryListAsync(string modelId, CancellationToken ct = null) | Task <IEnumerable <QueryListItem>> | Gets the list of available queries. |
GetQueryListCoreAsync(string modelId, CancellationToken ct) | Task <IEnumerable <QueryListItem>> | Basic implementation of Korzh.EasyQuery.Services.EasyQueryManager.GetQueryListAsync(System.String,System.Threading.CancellationToken) 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, `CancellationToken` ct = null) | Task <IEnumerable <ListItem>> | Returns custom list of values by editorId. This method is usually called by GetList action of EasyQueryController. |
InitQueryAsync(CancellationToken ct = null) | Task | Initializes the new query and saves it to the storage (if SaveNewQueryToStore is turned on). |
InitQueryCoreAsync(CancellationToken ct) | 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, CancellationToken ct = null) | Task | Loads model by its ID. |
LoadModelFromCacheAsync(string modelId, CancellationToken ct) | Task <bool > | Loads DataModel from cache by ID (name) |
LoadQueryAsync(string modelId, string queryId, CancellationToken ct = null) | Task | |
LoadQueryFromCacheAsync(string queryId, CancellationToken ct) | 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, CancellationToken ct) | Task | Read one property from a request's JSON object. |
ReadRequestContentFromJsonAsync(string modelId, JsonReader reader, CancellationToken ct = null) | Task | Reads the content of the client-side request from a JsonReader object. |
ReadRequestContentFromTextReaderAsync(string modelId, TextReader reader, CancellationToken ct = null) | Task | Loads all reaquest's data (like query, options, etc) from the text reader. |
RemoveQueryAsync(string modelId, string queryId, CancellationToken ct = null) | Task <bool > | Removes the query. This method uses the functionality provided by the current query store. |
SaveModelInCacheAsync(CancellationToken ct) | Task | Saves model into cache |
SaveQueryInCacheAsync(CancellationToken ct) | Task | Saves query into cache |
SaveQueryToStoreAsync(bool createIfNotExist = True, CancellationToken ct = null) | Task <bool > | Saves the current query to the query store. |
SaveValueInCache(string key, string value) | void | Stores some string value in cache. |
SyncQueryAsync(CancellationToken ct = null) | Task | Synchronizes the query. |
SyncQueryCoreAsync(CancellationToken ct) | 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. |