I already have a working solution which converts the inclusions to their dot paths in order to support .Include
/.ThenInclude
. But, EF now allows you to add filters such as .Include(x => x.MyNavigations.Where(predicate))
, and the dot path notation is not going to work for that. I'd really like to keep EF-specific dependencies out of my repository implementation, but I'd also love to add filters in my joins wherever possible.
Edit: here is an answer showing how we've been supporting ThenInclude` successfully until now: https://stackoverflow.com/a/58844065/15716642