public void TestDistinct() { _clause.Distinct(); _clause.Select("a"); Assert.Equal("Select Distinct [a]", GetSql()); }
/// <summary> /// 过滤重复记录 /// </summary> /// <returns></returns> public ISqlBuilder Distinct() { SelectClause.Distinct(); return(this); }