I am running into following error:
The Include path expression must refer to a navigation property defined on the type. Use dotted paths for reference navigation properties and the Select operator for collection navigation properties.
Parametername: path
With the following code:
return _context.Section.Include(x => x.Leagues.Select(y => y.Games.Where(v=>v.GameStart > DateTime.Now))).ToList();
I am trying to select all sections with all leagues that have active games. I just cannot get around this error and have not managed to find a proper solution on SF.
Thankful for any help
Regards, Marianne