0
aliamjad created
Hi,
Based on the current scenario in my project, I don't want to use the IoC container to resolve the dependencies rather I would like to create an object of Repository in Application service layer but it requires DBContext, how can I correctly declare the object of this repository?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
Hi,
The whole system is based on DI. If you want to create it in this way, it is very hard to do it, and probably you will face many problems.
I suggest you to use DI.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)