BuildQuery(QueryBuilderOptions options = null) | IQueryStatement | Builds a Korzh.EasyQuery.IQueryStatement object by the Korzh.EasyQuery.Services.EasyQueryManagerSql.Query and returns the built statement. |
CreateDbResultSet(IDataReader dataReader, ResultSetOptions settings) | EasyDbResultSet | Creates result set |
CreateModelCore(string modelId = null) | DataModel | Creates new DataModel object |
CreateQueryBuilderCore() | IQueryBuilder | Returns the query builder. In this particular kind of EasyQueryManager it will be an instance of SqlQueryBuilder. This method also builds the query so you can read the result via GetResult method call. |
CreateQueryCore() | Query | Creates new DbQuery object. |
Dispose(bool disposing) | 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. |
FetchDataCoreAsync(CancellationToken ct) | Task <IEqResultSet> | The actual implemenation of FetchData function. This method is overridden in EasyQueryManagerBase descendants like EasyQueryManagerSql or EasyQueryManagerLinq. |
GetAggregatesContainerBuilder(IReadOnlyList <EasyDataCol > dataCols, AggregationSettings aggrSettings) | IAggregatesContainerBuilder | |
GetConnection() | DbConnection | Gets the DbConnection associated with this service. If connection is not defined yet - it wil be resolved using ConnectionResolver. This method opens the connection if it's not opened yet. |
GetConnectionCore() | DbConnection | Returns the connection object. The default implementations just calls ConnectionResolved to get the connection. You can override this function in dervived class to implement your own behavior of resolving the connnection by the model ID. |
GetDataExportSettings(string format) | IDataExportSettings | Gets the data export settings. |
GetEmptyResultSet() | IEqResultSet | Gets any empty result set. |
GetExportAggrContainer(IReadOnlyList <EasyDataCol > dataCols, IDataExportSettings settings) | ExportAggrContainer | |
GetRecordCountAsync(CancellationToken ct = null) | Task <long > | Gets the record count for the current query |
GetResultSetAsync(ISqlStatement statement, ResultSetOptions settings = null, `CancellationToken` ct = null) | Task <IEqResultSet> | Creates and returns a ResultSet object by SQL statement. |
PrepareDbCommand(ISqlStatement statement, bool useCountCommand = False) | DbCommand | Creates and prepares the database command. |
ReadClientOptions(JObject clientOptions) | void | |
TuneDbCommand(DbCommand command) | void | Tunes up the DbCommand object. By default this method just calls a DbCommandTuner (if any is defined) |