Esempio n. 1
0
        public void TestUnionCondition2()
        {
            SqlMaker <Student>     package   = new SqlMaker <Student>();
            SqlCondition <Student> condition = new SqlCondition <Student>();
            var result = SqlCollection <Student> .Union(SqlEntity <Student> .SelectAllWhere + (condition > "Sid").Full);

            Assert.Equal("(SELECT * FROM `1` WHERE `Sid` > @Sid)", result);
        }
Esempio n. 2
0
 public void TestUnion()
 {
     var result = SqlCollection <One> .Union(SqlEntity <One> .SelectAllWhere + (condition > "oid").Full, "table1", "table2", "table3");
 }