Example #1
0
        public async Task InQuery()
        {
            LCQuery <LCObject> worldQuery = new LCQuery <LCObject>("World");

            worldQuery.WhereEqualTo("content", "7788");
            LCQuery <LCObject> helloQuery = new LCQuery <LCObject>("Hello");

            helloQuery.WhereMatchesQuery("objectValue", worldQuery);
            helloQuery.Include("objectValue");
            ReadOnlyCollection <LCObject> hellos = await helloQuery.Find();

            Assert.Greater(hellos.Count, 0);
            foreach (LCObject item in hellos)
            {
                LCObject world = item["objectValue"] as LCObject;
                Assert.AreEqual(world["content"], "7788");
            }
        }