Example #1
0
 /// <summary>
 /// 求最小值
 /// </summary>
 /// <typeparam name="TEntity">实体类型</typeparam>
 /// <param name="expression">列名表达式</param>
 /// <param name="columnAlias">列别名</param>
 /// <returns></returns>
 public ISqlBuilder Min <TEntity>(Expression <Func <TEntity, object> > expression, string columnAlias = null) where TEntity : class
 {
     SelectClause.Min(expression, columnAlias);
     return(this);
 }
Example #2
0
 public void TestMin_1()
 {
     _clause.Min("a");
     Assert.Equal("Select Min([a])", GetSql());
 }
Example #3
0
 /// <summary>
 /// 求最小值
 /// </summary>
 /// <param name="column">列名</param>
 /// <param name="columnAlias">列别名</param>
 /// <returns></returns>
 public ISqlBuilder Min(string column, string columnAlias = null)
 {
     SelectClause.Min(column, columnAlias);
     return(this);
 }