コード例 #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();
         }
 }