Click here to Skip to main content
15,913,467 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When Dealing with linq to sql and instantiating datacontext
Is it better to deal with one datacontext in all functions or we should
instantiate a new datacontext in each function ?
Posted
Comments
Tomas Takac 11-Nov-14 10:02am    

1 solution

Rick Strahl's has posted nice article about the DataContext management and its available here:-

http://weblog.west-wind.com/posts/2008/Feb/05/Linq-to-SQL-DataContext-Lifetime-Management
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900