Object context

May 7, 2010 at 3:37 AM

I have been developing a web application using OPF3 framework, but I want to know if is a good practice create and use only one object context per user request.

May 8, 2010 at 1:01 AM


that's a good practice. The ObjectContext object is not threadsafe. That means if two users use the same ObjectContext it might have side effects. Also creating a new ObjectContext is not really expensive.