Beispiel #1
0
        public void FindByWhereCountByCreatedAtTest()
        {
            BmobDate start = new DateTime(2014, 10, 1);
            BmobDate end   = new DateTime(2016, 1, 1);

            var startQuery = new BmobQuery();

            startQuery.WhereGreaterThanOrEqualTo("createdAt", start);

            var endQuery = new BmobQuery();

            endQuery.WhereLessThan("createdAt", end);

            var query = startQuery.And(endQuery);

            // 不返回具体内容
            query.Limit(0);
            query.Count();

            var future = Bmob.FindTaskAsync <Object>(TABLENAME, query);

            FinishedCallback(future.Result, null);
        }
Beispiel #2
0
        public void FindByWhereCountByCreatedAtTest()
        {
            BmobDate start = new DateTime(2014, 10, 1);
            BmobDate end = new DateTime(2016, 1, 1);

            var startQuery = new BmobQuery();
            startQuery.WhereGreaterThanOrEqualTo("createdAt", start);

            var endQuery = new BmobQuery();
            endQuery.WhereLessThan("createdAt", end);

            var query = startQuery.And(endQuery);
            // 不返回具体内容
            query.Limit(0);
            query.Count();

            var future = Bmob.FindTaskAsync<Object>(TABLENAME, query);
            FinishedCallback(future.Result, null);
        }