You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the blog & the source repo.
I made some changes to your original code that mimic one of my scenarios & it appears that the collection in the navigation property doesn't seem to be considered as part of the Create/Update method.
Since I never use navigation properties because the limitations they have, I completely forgot about them. Sincerely, thinking the way of of EF Core works, I'm pretty sure the code as is won't work.
@gravity00 Sure. Let me know if you have something to share.
Also, there is a ticket to support immutability officially (link below, if you don't know already). You may vote this and share with your followers. dotnet/efcore#11457
Thanks for the blog & the source repo.
I made some changes to your original code that mimic one of my scenarios & it appears that the collection in the navigation property doesn't seem to be considered as part of the Create/Update method.
Repro project here:
EfCoreImmutable.zip
Here I'm expecting the Roles to be created along with the Person object.
Please let me know if I'm missing something or if it needs additional configuration/code changes.
Thanks in advance!
The text was updated successfully, but these errors were encountered: