예제 #1
0
 /// <summary>
 /// 统计指定条件的数据量
 /// </summary>
 /// <param name="queryList"></param>
 /// <returns></returns>
 public virtual long GetCount(DapperExQuery <T> query)
 {
     using (DbBase DbContext = new DbBase(connectionName))
     {
         return(DbContext.Count <T>(query.GetSqlQuery(DbContext)));
     }
 }
예제 #2
0
 public virtual long Count(DbBase dbs, SqlQuery sql = null)
 {
     return(dbs.Count <T>(sql));
 }