InvalidOperationException: An error was generated for warning 'Microsoft.EntityFrameworkCore.Query.InvalidIncludePathError': Unable to find navigation 'EntityName' specified in string based include path 'AnotherEntity Name'.

Question: How do you retrieve data from two different tables using Linq in Asp.Net 5 Entity Framework? I am getting an error that says:
InvalidOperationException: An error was generated for warning 'Microsoft.EntityFrameworkCore.Query.InvalidIncludePathError': Unable to find navigation 'EntityName' specified in string based include path 'AnotherEntity Name'. This exception can be suppressed or logged by passing event ID 'CoreEventId.InvalidIncludePathError' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'.


Answer Here: https://www.ernestech.com/articles/details/12090/an-error-was-generated-for-warning-%27microsoft.entityframeworkcore.query.invalidincludepatherror%27%3A-unable-to-find-navigation-specified-in-string-based-include-path


Write an Article

InvalidOperationException: An error was generated for warning 'Microsoft.EntityFrameworkCore.Query.InvalidIncludePathError': Unable to find navigation 'EntityName' specified in string based include path 'AnotherEntity Name'.

Edited Version 2

Question: How do you retrieve data from two different tables using Linq in Asp.Net 5 Entity Framework? I am getting an error that says:
InvalidOperationException: An error was generated for warning 'Microsoft.EntityFrameworkCore.Query.InvalidIncludePathError': Unable to find navigation 'EntityName' specified in string based include path 'AnotherEntity Name'. This exception can be suppressed or logged by passing event ID 'CoreEventId.InvalidIncludePathError' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'.

If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.

Matt said:

Go to current URL: https://www.ernestech.com/articles/details/12090/an-error-was-generated-for-warning-%27microsoft.entityframeworkcore.query.invalidincludepatherror%27%3A-unable-to-find-navigation-specified-in-string-based-include-path


© 2022 - ErnesTech - Privacy