/// <summary> /// Query ALL /// 查询全部。 /// </summary> /// <typeparam name="TEntity">类型参数</typeparam> /// <param name="connection">DbConnection</param> /// <returns>TEntity 集合</returns> public static IEnumerable <TEntity> QueryALL <TEntity>(this IDbConnection connection) where TEntity : class { try { return(DommelMapper.GetAll <TEntity>(connection)); } catch (Exception ex) { throw new Exception(ex.Message); } }