EF DbContext on a generic repository does not perform the expected includes when transforming the data into a...
0
This question already has an answer here:
EF Generic Repository Multiple Includes
1 answer
I have a generic/base repository that I'm using and it contains different variety of methods for accessing my database. Here's a sample: public IQueryable<T> FindAll(string includedProperties = null) { var setContext = _context.Set<T>(); if (includedProperties != null) { foreach (var property in includedProperties) { setContext.Include(property); } } return setContext; } I'm calling this method by: var employees = _employeeRepository.FindAll(new string { "JobPosition", "D