I’ve seen this asked a few times and never answered. EF has a tendency to create shadow properties when it’s confused and they NEVER exist. My model classes are always accurate and don’t need extra nonsense. So how can I stop EF from creating shadow properties? I’d be fine if it instead gave me a specific error that told me where it’s confused.
Right now I have all emitted SQL going to the console and I read through that to try to guess what’s going on. But it’s a nightmare.
I am not asking about a specific instance. I am saying in general EF creates these shadow properties if it thinks I have a dependency and no key, and instead of trying to unravel that, I would like my code to just work even if that dependency doesn’t work as expected. I find this happens even with the auto generated code and I spend hours trying to work out why. I just want to turn this feature off!
5