What happens when you use the Include method on a non-existent relationship in a query?

  • An InvalidOperationException is thrown
  • No error is thrown, and the related entities are loaded as null values
  • The query results in an empty set
  • The related entities are loaded with default values
An InvalidOperationException is thrown when you use the Include method on a non-existent relationship. This error indicates that the relationship specified does not exist, and therefore, related entities cannot be included in the query.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *