예제 #1
0
파일: TestBll.cs 프로젝트: userwyy/StepApp
 /// <summary>
 /// 查询tb_test数据--Dapper
 /// </summary>
 /// <typeparam name="TestModel"></typeparam>
 /// <param name="tbName"></param>
 /// <param name="sqlWhere"></param>
 /// <param name="rowTotal"></param>
 /// <param name="limit"></param>
 /// <param name="offset"></param>
 /// <returns></returns>
 public IEnumerable <TestModel> DapperGetTest <TestModel>(string tbName, string sqlWhere, out int rowTotal, int limit = 10, int offset = 0)
 {
     return(baseDal.DapperQuery <TestModel>(tbName, sqlWhere, out rowTotal, limit, offset));
 }