New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SqlTransaction error when navigation property not included #12674
Comments
The code supplied to reproduce this issue is quite complex. It would help greatly to have a simplified project/solution or code listing that isolates the issue in EF. Posting above code in console app is not working since lack of database and seed data. Especially seed data part is hard to arrive at given the complex model. |
Hi Smit. I apologise for the complexity and lack of seed data. I took quite a bit of time to scare down to this simplified version. The data is a mix of client and commercial data that I'll not able to share. I'm happy to generate some test data, but it will be a couple of weeks before I can get to it. I do appreciate your attention to this issue! |
EF Team Triage: Closing this issue as the requested additional details have not been provided and we have been unable to reproduce it. BTW this is a canned response and may have info or details that do not directly apply to this particular issue. While we'd like to spend the time to uniquely address every incoming issue, we get a lot traffic on the EF projects and that is not practical. To ensure we maximize the time we have to work on fixing bugs, implementing new features, etc. we use canned responses for common triage decisions. |
Receiving the following exception:
While creating a scaled down test app, I realized it only happens when a navigation property was missed:
...and when the missing navigation property is accessed.
I'm not sure this scenario should throw an exception. If the exception can't be avoided, I'm hoping for an improved message to help identify what's happening (and help others avoid the numerous hours I spent on this ).
EF Core version: 2.1.1
Database Provider: Microsoft.EntityFrameworkCore.SqlServer 2.1.1
Operating system: Microsoft Windows 10 Enterprise Version 10.0.16299 Build 16299
IDE: Visual Studio 2017 Professional 15.7.0
Repro:
The text was updated successfully, but these errors were encountered: