Exemple #1
0
        void TestNotCondition()
        {
            Users user = new Users();
            OQL   q    = OQL.From(user)
                         .Select(user.ID, user.UserName, user.Password)
                         .Where <Users>((cmp, u) => OQLCompare.Not(
                                            cmp.Property(u.UserName) == "ABC" & cmp.Property(u.Password) == "123")
                                        )
                         .END;

            Console.WriteLine("OQL Test NOT Condition:\r\n{0}\r\n", q);
            Console.WriteLine(q.PrintParameterInfo());
        }