Cannot separate code when using DbContext
I always try to separate my code as much as possible. I’m fairly new to ASP.NET Core but the code principles and software design patterns are the same in all languages, however, when using entity-framework, there’s something that bothers me, or that I don’t know how to deal with.