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); } }
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); } }
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; } }