Example #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));
        }
Example #2
0
        public override StoredProcedureResult <TEntity> Execute()
        {
            StoredProcedureResult storedProcedureResult =
                _databaseCommander.ExecuteStoredProcedure(CommandRequest);

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

            return(new StoredProcedureResult <TEntity>(data, storedProcedureResult.Parameters));
        }