Inheritance: DbTable
Beispiel #1
0
        public void TestMethod33()
        {
            users tb = new users();

            long num = tb.where("UserID=?", 1L).delete();
            if (num > 0)
                return;
        }
Beispiel #2
0
        public void TestMethod34()
        {
            users tb = new users();

            long num = tb.where("UserID=?", 1L)
                         .select("UserID")
                         .getValue(0L);
            if (num > 0)
                return;
        }
Beispiel #3
0
        public void TestMethod32()
        {
            users tb = new users();

            tb.Nickname = "xxxx";
            tb.City = "xx";

            long num = tb.where("UserID=?", 1).update();
            if (num > 0)
                return;
        }
Beispiel #4
0
        public void TestMethod31()
        {
            users tb = new users();

            tb.Nickname = "xxxx";
            tb.City = "xx";

            long num = tb.insert();
            if (num > 0)
                return;
        }
Beispiel #5
0
        public void TestMethod35()
        {
            users tb = new users();

            var m = tb.where("UserID<? AND sex=?", 100, 1)
                      .limit(1)
                      .select("UserID,Nickname,Sex")
                      .getItem(new UserModel());

            if (m.UserID > 0)
                return;
        }