Software developer and indie game developer from Sweden. Been turning coffee into code since 2010.
Sorry, should be working now :)
Sorry, broken link, it has now been updated :)
You are suppose to have one repository for each Entity (Table).
So in that case, create a new repository for that specific Entity.
Hello Joshua, yes you can, from the .Entities property in the Repository. For example, get all books of Author with ID 1 :
var books = AuthorRepository.Entities.Where(n => n.Id == 1).SelectMany(n => n.Books).ToList();
Hello Marcus, Thanks.
I wan’t to be able to mock the DbContext when I’m writing unit tests. So we rather want to provide dependencies in the constructor. Test driven development.