/// <summary> /// 异步获取最小值 /// </summary> /// <typeparam name="TProperty">属性</typeparam> /// <typeparam name="TReturn">返回类型</typeparam> /// <param name="expression">属性表达式</param> /// <param name="condition">条件</param> /// <param name="isWrite">是否为写连接</param> /// <returns>最小值</returns> public Task <TReturn> MinAsync <TProperty, TReturn>(Expression <Func <T, TProperty> > expression, Expression <Func <T, bool> > condition, bool isWrite = false) { SqlQuery query = SqlQueryUtil.BuilderQueryMinSqlQuery(expression, TableName, condition, dbType: WriterDataType); return(GetDataAccess(isWrite: isWrite).QuerySingleOrDefaultAsync <TReturn>(query)); }