У меня есть такое утверждение в моем методе HttpGet в контроллере MVC:
IEnumerable<UserExtension> iue = await DataContext.UserExtensions;
Если я изменю команду на:
IEnumerable<UserExtension> iue = DataContext.UserExtensions.Include(ue => ue.UserRoles)
В коде не возникает исключение,но я получаю следующий ответ в Почтальоне:
Could not get any response
There was an error connecting to http://localhost:60891/table/UserExtension.
Why this might have happened:
The server couldn't send a response:
Ensure that the backend is working properly
Self-signed SSL certificates are being blocked:
Fix this by turning off 'SSL certificate verification' in Settings > General
Proxy configured incorrectly
Ensure that proxy is configured correctly in Settings > Proxy
Request timeout:
Change request timeout in Settings > General
Любые идеи, почему это произошло?
Без предложения .Include()
все работает, и UserRoles
возвращается как NULLкак и ожидалось.