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.
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.