Last post Nov 07, 2014 05:09 PM by EnenDaveyBoy
Nov 07, 2014 09:46 AM|EnenDaveyBoy|LINK
I am using a tutorial to test some things, and change the way I am doing things at present one of the methods in the repository is
public IEnumerable<T> FindBy(System.Linq.Expressions.Expression<Func<T, bool>> predicate)
IEnumerable<T> query = _dbset.Where(predicate).AsEnumerable();
However I am using eager loading , so how do I add multiple includes?
Nov 07, 2014 02:50 PM|Mikesdotnetting|LINK
There's an example here: http://stackoverflow.com/questions/22813938/entity-framework-include-and-where-clause-in-generic-repository
You might also find this interesting/deflating: http://rob.conery.io/2014/03/04/repositories-and-unitofwork-are-not-a-good-idea/
Nov 07, 2014 05:09 PM|EnenDaveyBoy|LINK
Thanks for the info, while I understand the article I am simply not good enough to find a different solution so will have to keep to it for now and worry about it later.