Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using dbcontext in unit of work

Status
Not open for further replies.

baran121

Programmer
Sep 8, 2005
337
TR
Hello,
i have a question about unit of work pattern.
In unit of work pattern class constructor I take Isntance from dbcontext. so when i use each time unit of work ,i reinstance dbcontext.
We want to be sure using which one better for performance. using singleton dbcontext or to reinstance it each time. If singleton has better performance how can i use it.
thank you for your advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top