示例#1
0
		protected override void OnSetUp()
		{
			using (var session = OpenSession())
			using (var tx = session.BeginTransaction())
			{
				var entity = new EntityWithAByteValue {ByteValue = 1};
				session.Save(entity);
				tx.Commit();
			}
		}
示例#2
0
文件: Fixture.cs 项目: jrauber/GH1429
 protected override void OnSetUp()
 {
     using (var session = OpenSession())
         using (var tx = session.BeginTransaction())
         {
             var entity = new EntityWithAByteValue {
                 ByteValue = 1
             };
             session.Save(entity);
             tx.Commit();
         }
 }
示例#3
0
 protected override void OnSetUp()
 {
     using (ISession session = OpenSession())
     {
         using (ITransaction tx = session.BeginTransaction())
         {
             var entity = new EntityWithAByteValue();
             entity.ByteValue = 1;
             session.Save(entity);
             tx.Commit();
         }
     }
 }