Пример #1
0
 public void SetUp()
 {
     BuildDomain("1", DomainUpgradeMode.Recreate);
     using (var session = domain.OpenSession()) {
         using (var tx = session.OpenTransaction()) {
             var toRemove1 = new M1.EntityToRemove1();
             var toKeep1   = new M1.EntityToKeep1(toRemove1);
             var toRemove2 = new M1.EntityToRemove2();
             var toKeep2   = new M1.EntityToKeep2(toRemove2);
             new M1.VeryUniqueEntity();
             new M1.VeryUniqueEntity();
             tx.Complete();
         }
     }
 }
Пример #2
0
 public EntityToKeep2(EntityToRemove2 evilRef)
 {
     EvilRef = evilRef;
 }