tags:

views:

25

answers:

1

Hi,

I'm wondering if it is possible to do direct SQL updates of my own in the same transaction as NHibernate is using to update my persistent objects?

A: 

Yes, it's possible with ITransaction.Enlist(IDbCommand).

See this blog post for details.

Mauricio Scheffer
Thanks for that. I'm currently investigating how to get round a problem with a table that has no primary key (in another post) but this could be my lifeline if I can't find a better approach
Andy Fish