コード例 #1
0
ファイル: TestCriteriaQuery5.cs プロジェクト: ekicyou/pasta
        public virtual void TestIntLongCriteriaQuery()
		{
            string baseName = GetBaseName();
			
			NeoDatis.Odb.ODB odb = Open(baseName);
			ClassWithInt cwi = new ClassWithInt(1, "test");
			odb.Store(cwi);
			odb.Close();
			odb = Open(baseName);
			NeoDatis.Odb.Objects<ClassWithInt> os = odb.GetObjects<ClassWithInt>(new CriteriaQuery(Where.Equal("i", (long)1)));
			AssertEquals(1, os.Count);
			odb.Close();
		}
コード例 #2
0
ファイル: TestCriteriaQuery5.cs プロジェクト: ekicyou/pasta
        public virtual void TestIntLongCriteriaQuery()
        {
            string baseName = GetBaseName();

            NeoDatis.Odb.ODB odb = Open(baseName);
            ClassWithInt     cwi = new ClassWithInt(1, "test");

            odb.Store(cwi);
            odb.Close();
            odb = Open(baseName);
            NeoDatis.Odb.Objects <ClassWithInt> os = odb.GetObjects <ClassWithInt>(new CriteriaQuery(Where.Equal("i", (long)1)));
            AssertEquals(1, os.Count);
            odb.Close();
        }