private void TransactionCommitted(object sender, TransactionEventArgs transactionEventArgs) { if (transactionEventArgs.Transaction.IsNested) { return; } Versions.MergeWith(materializedVersions, Session); Versions.MergeWith(modifiedVersions, Session); foreach (var key in removedKeys) { Versions.Remove(key); } materializedVersions.Clear(); modifiedVersions.Clear(); removedKeys.Clear(); }
private void TransactionRollbacked(object sender, TransactionEventArgs transactionEventArgs) { removedKeys.Clear(); modifiedVersions.Clear(); }