Esempio n. 1
0
		protected override void OnSetUp()
		{
			base.OnSetUp();
			using (ISession session = OpenSession())
			{
				DomainClass entity = new DomainClass { Id = 1, Data = DateTime.Parse("10:00") };
				session.Save(entity);
				session.Flush();
			}
		}
Esempio n. 2
0
 protected override void OnSetUp()
 {
     base.OnSetUp();
     using (ISession session = OpenSession())
     {
         DomainClass entity = new DomainClass {
             Id = 1, Data = DateTime.Parse("10:00")
         };
         session.Save(entity);
         session.Flush();
     }
 }