示例#1
0
		protected override void OnSetUp()
		{
			base.OnSetUp();
			using (ISession session = OpenSession())
			{
				var entity = new DomainClass {Id = 1, BooleanData = true};
				session.Save(entity);
				session.Flush();
			}
		}
 protected override void OnSetUp()
 {
     base.OnSetUp();
     using (ISession session = OpenSession())
     {
         var entity = new DomainClass {
             Id = 1, BooleanData = true
         };
         session.Save(entity);
         session.Flush();
     }
 }