예제 #1
0
		/// <exception cref="System.Exception"></exception>
		public virtual void TestInsert()
		{
			DeleteBase("tinterfaces.neodatis");
			NeoDatis.Odb.ODB odb = Open("tinterfaces.neodatis");
			ObjectWithInterfaces owi = new ObjectWithInterfaces("Ol√° chico");
			odb.Store(owi);
			odb.Commit();
			odb.Close();
		}
예제 #2
0
		/// <exception cref="System.Exception"></exception>
		public virtual void TestInsertAndSelect()
		{
			DeleteBase("tinterfaces.neodatis");
			NeoDatis.Odb.ODB odb = Open("tinterfaces.neodatis");
			ObjectWithInterfaces owi = new ObjectWithInterfaces("Ol√° chico");
			odb.Store(owi);
			odb.Close();
			odb = Open("tinterfaces.neodatis");
			NeoDatis.Odb.Objects<ObjectWithInterfaces> os = odb.GetObjects<ObjectWithInterfaces>();
			AssertEquals(1, os.Count);
			odb.Close();
		}