Ejemplo n.º 1
0
 public async ValueTask <Product> GetById(int id)
 {
     return(await WithConnection(async conn =>
     {
         var query = await _dapperHelper.GetById <Product>(conn, id, _commandText.GetProductById);
         return query;
     }));
 }
Ejemplo n.º 2
0
 public Student GetStudent(int id)
 {
     return(_dapperHelper.GetById <Student>(id));
 }