Beispiel #1
0
 internal static void WithChangeSet(Action<ChangeSet, Transaction> action)
 {
     using(ChangeSet changeSet = new ChangeSet()) {
         Config.Transactional(transaction => {
             action(changeSet, transaction);
             changeSet.Apply(transaction);
         });
     }
 }
Beispiel #2
0
 public static void ApplyChanges(params AbstractChange[] changes)
 {
     using(ChangeSet changeSet = new ChangeSet()) {
         foreach(AbstractChange change in changes) {
             changeSet.Add(change);
         }
         Config.Transactional(transaction => {
             changeSet.Apply(transaction);
         });
     }
 }