This project is read-only.

Object context

May 7, 2010 at 4: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 2:01 AM

Hi,

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.

-Christian