Add() public method

public Add ( IEnumerable criteria ) : IWhereClause
criteria IEnumerable
return IWhereClause
Exemplo n.º 1
0
        public WhereClause Clone()
        {
            WhereClause clone = new WhereClause();

            clone.JoinType = JoinType;
            foreach (var item in InnerList)
            {
                clone.Add(item.Clone());
            }
            return(clone);
        }
Exemplo n.º 2
0
 public WhereClause Clone()
 {
     WhereClause clone = new WhereClause();
     clone.JoinType = JoinType;
     foreach (var item in InnerList)
     {
         clone.Add(item.Clone());
     }
     return clone;
 }
Exemplo n.º 3
0
        public void IsEmpty()
        {
            var item = new WhereClause();
            Assert.IsTrue(item.IsEmpty);

            item.Add(new WhereString("a=b"));
            Assert.IsFalse(item.IsEmpty);
        }