/// <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))); } }
public virtual long Count(DbBase dbs, SqlQuery sql = null) { return(dbs.Count <T>(sql)); }