Closed lsuarez5280 closed 9 years ago
Are you seeing this on 1.x? This was fixed on the dev/2.0.0 branch.
That's correct. If it's already corrected in the next release, please disregard. We're currently using the 1.2 release. I wired up the same logic in the custom store implementation to work around the issue. Thanks for pointing me to the 2.0 code.
np
Given the nature of the way related collections are only exposed via navigation properties, I assumed it was necessary to perform change resolution for each navigation property on write-back of a record. However, I can't delete related entities because there are no identifying relationships established with foreign keys either in the model builder or with decorators. Any attempt to call .Remove() on the navigation property produces the following exception:
The code looks similar to:
If this was not the intended method for updating related entities or I simply don't know of a better way EF offers to set the the related collection of entities, please let me know and feel free to disregard the report.