Пример #1
0
        public override async Task <StoredProcedureResult <TEntity> > ExecuteAsync(CancellationToken cancellationToken)
        {
            StoredProcedureResult storedProcedureResult = await
                                                          _databaseCommander.ExecuteStoredProcedureAsync(CommandRequest, cancellationToken);

            List <TEntity> data = MapToEntities(storedProcedureResult.DataTable);

            return(new StoredProcedureResult <TEntity>(data, storedProcedureResult.Parameters));
        }
 public override async Task <StoredProcedureResult> ExecuteAsync(CancellationToken cancellationToken)
 {
     return(await _databaseCommander.ExecuteStoredProcedureAsync(CommandRequest, cancellationToken));
 }