Exemplo n.º 1
0
 public void GenericList()
 {
     using (SessionNoServer session = new SessionNoServer(systemDir))
     {
         session.BeginUpdate();
         StoreList storeList = new StoreList();
         Placement place     = new Placement(55, 2, 1, 10, 10);
         storeList.Persist(place, session);
         UInt64 id = storeList.Id;
         session.Commit();
         using (SessionNoServer session2 = new SessionNoServer(systemDir))
         {
             session2.BeginRead();
             StoreList storeList2 = session2.Open <StoreList>(id);
             if (storeList2.in16 != 16)
             {
                 Console.WriteLine("Should be 16");
             }
             session2.Commit();
         }
     }
 }