You may want to check springframework.net, as it can do what you need. Even if you don't want to adopt the framework, you can check its source-code in order to get hints about it...
Francisco A. Lozano On Wed, Dec 16, 2009 at 16:51, James Crowley <[email protected]> wrote: > Hi Oskar - thanks for the response. Unfortunately I don't have a reference > to IDbCommand - just the transaction. > what I have is a LINQ to SQL query layer that needs to execute in the same > transaction as operations on our domain objects (which are mapped using > nHibernate). The only way I can see this happening is forcing them to share > the same transaction and connection? > All this is abstracted away so the consuming code doesn't know or care - but > need to get the plumbing working under the hood. > Any input would be much appreciated! > > James > > 2009/12/16 Oskar Berggren <[email protected]> >> >> session.Transaction.Enlist(idbcommand) >> >> /Oskar >> >> >> 2009/12/16 James Crowley <[email protected]>: >> > Hey guys, >> > Is there any way to enlist an existing IDbTransaction created elsewhere >> > (rather than starting a new one?). Alternatively, is it possible to get >> > a >> > reference to an IDbTransaction from an existing nHibernate transaction >> > to >> > use elsewhere? (basically need to execute some non-nHibernate db >> > interactions within the same transaction). >> > Thanks >> > James >> > >> > -- >> > >> > You received this message because you are subscribed to the Google >> > Groups >> > "nhusers" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group at >> > http://groups.google.com/group/nhusers?hl=en. >> > >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "nhusers" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/nhusers?hl=en. >> >> > > -- > > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
