Example #1
0
 /// <exception cref="System.Exception"></exception>
 public virtual void Test1()
 {
     NeoDatis.Odb.ODB     odb = Open("map.neodatis");
     NeoDatis.Odb.Objects l   = odb.GetObjects(typeof(NeoDatis.Odb.Test.VO.Arraycollectionmap.Dictionnary
                                                      ), true);
     // assertEquals(2,l.size());
     NeoDatis.Odb.Test.VO.Arraycollectionmap.Dictionnary dictionnary = (NeoDatis.Odb.Test.VO.Arraycollectionmap.Dictionnary
                                                                        )l.GetFirst();
     AssertEquals("Smadja", dictionnary.Get("olivier"));
     odb.Close();
 }
Example #2
0
 /// <exception cref="System.Exception"></exception>
 public virtual void Test2()
 {
     NeoDatis.Odb.ODB     odb = Open("map.neodatis");
     NeoDatis.Odb.Objects l   = odb.GetObjects(typeof(NeoDatis.Odb.Test.VO.Arraycollectionmap.Dictionnary
                                                      ));
     NeoDatis.Odb.Impl.Core.Query.Criteria.CriteriaQuery aq = new NeoDatis.Odb.Impl.Core.Query.Criteria.CriteriaQuery
                                                                  (typeof(NeoDatis.Odb.Test.VO.Arraycollectionmap.Dictionnary), NeoDatis.Odb.Core.Query.Criteria.Where
                                                                  .Equal("name", "test2"));
     l = odb.GetObjects(aq);
     NeoDatis.Odb.Test.VO.Arraycollectionmap.Dictionnary dictionnary = (NeoDatis.Odb.Test.VO.Arraycollectionmap.Dictionnary
                                                                        )l.GetFirst();
     AssertEquals(new NeoDatis.Odb.Test.VO.Login.Function("function2").GetName(), ((NeoDatis.Odb.Test.VO.Login.Function
                                                                                    )dictionnary.Get("f2")).GetName());
     odb.Close();
 }