예제 #1
0
 public void InsertTest01()
 {
     using (var session = Domain.OpenSession())
         using (var transaction = session.OpenTransaction()) {
             _ = new ALotOfFieldsEntityValid();
             Assert.DoesNotThrow(() => session.SaveChanges());
         }
 }
예제 #2
0
 protected override void PopulateData()
 {
     using (var session = Domain.OpenSession())
         using (var transaction = session.OpenTransaction()) {
             _ = new ALotOfFieldsEntityValid();
             _ = new ALotOfFieldsEntityVersionized();
             transaction.Complete();
         }
 }