Exemplo n.º 1
0
 public static WhereClip operator !(WhereClip right)
 {
     WhereClip newWhere = new WhereClip();
     newWhere.Or(right).Not();
     return newWhere;
 }
Exemplo n.º 2
0
        public static WhereClip operator |(WhereClip left, WhereClip right)
        {
            Check.Require(((object)left) != null, "left could not be null.");
            Check.Require(((object)right) != null, "right could not be null.");

            WhereClip newWhere = new WhereClip();
            newWhere.Or(left);
            newWhere.Or(right);
            return newWhere;
        }
Exemplo n.º 3
0
        public WhereClip NotIn(params object[] objs)
        {
            Check.Require(objs != null && objs.Length > 0, "objs could not be null or empty.");

            WhereClip where = new WhereClip();
            foreach (object obj in objs)
            {
                where.Or(this == obj);
            }

            return where.Not();
        }