Open Closed

Use service layer without repository #970


0
vnunes created

How use service layer without repository pattern? The dbcontext implement by defaut a repository


1 Answer(s)
  • 0
    hikalkan created

    you can inject

    IDbContextProvider<YourDbContext>
    

    into your application services. For that, you need to add reference to Abp.EntityFramework from your application layer.