public virtual void TestLongIntCriteriaQuery() { DeleteBase(BaseName); NeoDatis.Odb.ODB odb = Open(BaseName); NeoDatis.Odb.Test.Query.Criteria.ClassWithLong cwl = new NeoDatis.Odb.Test.Query.Criteria.ClassWithLong (1L, "test"); odb.Store(cwl); odb.Close(); odb = Open(BaseName); NeoDatis.Odb.Objects<ClassWithLong> os = odb.GetObjects<ClassWithLong>(new NeoDatis.Odb.Impl.Core.Query.Criteria.CriteriaQuery (NeoDatis.Odb.Core.Query.Criteria.Where .Equal("i", (int)1))); AssertEquals(1, os.Count); odb.Close(); }
public virtual void TestLongIntCriteriaQuery() { DeleteBase(BaseName); NeoDatis.Odb.ODB odb = Open(BaseName); NeoDatis.Odb.Test.Query.Criteria.ClassWithLong cwl = new NeoDatis.Odb.Test.Query.Criteria.ClassWithLong (1L, "test"); odb.Store(cwl); odb.Close(); odb = Open(BaseName); NeoDatis.Odb.Objects <ClassWithLong> os = odb.GetObjects <ClassWithLong>(new NeoDatis.Odb.Impl.Core.Query.Criteria.CriteriaQuery (NeoDatis.Odb.Core.Query.Criteria.Where .Equal("i", (int)1))); AssertEquals(1, os.Count); odb.Close(); }