Microsoft Sync Framework clashes with Nhibernate TooManyRowsAffectedexception
问题 We are trying to implement the Microsoft Sync Framework into our application that persists it's domain using NHibernate. One of the problems we encountered is that after the Sync Framework has altered your initial database structure (adding shadow tables and triggers) NHibernate seems to get upset by throwing an toomanyrowsaffectedexception when you try to insert objects into the database. I found this article that has the solution of adding SET NOCOUNT ON and OFF around each update statement