So if I switch from MVC only to a Service-Repository pattern, how to I connect to my database? More specifically, where does my DbSet go? From the start, it's in my ApplicationDbContext class under my Data folder. Would I have to move those at all, or do I just use DI from the DbContext?
So if I switch from MVC only to a Service-Repository pattern, how to I connect to my database? More specifically, where does my DbSet go? From the start, it's in my ApplicationDbContext class under my Data folder. Would I have to move those at all, or do I just use DI from the DbContext?