Пример #1
0
 public void TestDistinct()
 {
     _clause.Distinct();
     _clause.Select("a");
     Assert.Equal("Select Distinct [a]", GetSql());
 }
Пример #2
0
 /// <summary>
 /// 过滤重复记录
 /// </summary>
 /// <returns></returns>
 public ISqlBuilder Distinct()
 {
     SelectClause.Distinct();
     return(this);
 }