Saturday, December 25, 2010

How to solve “New transaction is not allowed because there are other threads running in the session” in Entity Framework

Make sure only call SaveChanges method once in the end, not inside loop.
Or covert collection to IList