Entity Framework 4.0 Best Practise for Creating Object Context -


I would like to know what is the best practice to create an object project instance. Prior to the unit framework, we are advised not to delay the creation of the connection object unless we need to settle it to execute the query and to conserve resources.

Will this exercise also apply to objectcontact? Do we want ObjectContext to maintain the underlying database connection once we instantinate the objectcontent or when we release the SaveChanges call?

Regards

Yong

The best practice for creating an image context per HTTP request for more detail Take a look at the article below. Insert in which he has discussed many scenarios.

Thanks


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -