C# controlling a transaction across multiple databases
Say I'm having a Windows Form application which connected to n databases, with n connections opened simultaneously. What I'm looking for is to do a transaction with all of those databases in one go. For example if I were to have 2 database connections : using (ITransaction tx1 = session1.OpenTransaction()) { using (ITransaction tx2 = session2.OpenTransaction()) { // Do the query thingy here } } Writing all that is fine at first, but things get kind of redundant when I wanted to query here and there, and not to mention the possibility to adding a new connection. What I wanted is to loop all of