Base solution for your next web application
Open Closed

Creating Object of Repository in Application Service Layer #2949


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?


1 Answer(s)
  • 0
    ismcagdas created
    Support Team

    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.