Exemple #1
0
        public async Task <T> Find(string storedProc, DynamicParameters parameters)
        {
            using (var conn = this.Connection)
            {
                var model = await DapperORM <T> .Execute(Connection, storedProc, parameters);

                return(model);
            }
        }
Exemple #2
0
        public async Task <int> Create(string storedProc, DynamicParameters parameters)
        {
            using (var conn = this.Connection)
            {
                var models = await DapperORM <T> .ExecuteScalar(Connection, storedProc, parameters);

                return(models);
            }
        }
Exemple #3
0
        public async Task <IEnumerable <T> > FindAll(string storedProc, DynamicParameters parameters)
        {
            try
            {
                var conn  = this.Connection;
                var model = await DapperORM <T> .ExecuteReturnList(conn, storedProc, parameters);

                return(model);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }