-
Notifications
You must be signed in to change notification settings - Fork 3.3k
PropertyValues.SetValues(obj) causes DELETE instead of UPDATE #16546
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Note for triage: I was able to reproduce this. Will require some more investigation to figure out what is going wrong. |
Note for triage: confirmed that this still repros in 3.0. |
In which version is this fixed? Will the fix be published in Version 3.1? |
@aureole82 The milestone on the issue indicates which release this is targeted for--currently 5.0. We may choose to patch 3.1 with this, but that's not currently the plan. |
Consider to patch 3.1, please! |
…elete issues We made tweeks to the cascade delete behavior in 3.0 and also changed the default timing for when cascades happen. This change introduced several bugs which all result in deletion or severing of relationships instead of detaching them. This was then hit by more people due to the timing change. Issues: #19203 #19137 #18982 #16546
…elete issues We made tweeks to the cascade delete behavior in 3.0 and also changed the default timing for when cascades happen. This change introduced several bugs which all result in deletion or severing of relationships instead of detaching them. This was then hit by more people due to the timing change. Issues: #19203 #19137 #18982 #16546
…elete issues We made tweeks to the cascade delete behavior in 3.0 and also changed the default timing for when cascades happen. This change introduced several bugs which all result in deletion or severing of relationships instead of detaching them. This was then hit by more people due to the timing change. Issues: #19203 #19137 #18982 #16546
Describe what is not working as expected.
DELETE FROM [ContainerRooms] WHERE [Id] = ...;
instead of
UPDATE [ContainerRooms] SET [ProductId] = NULL WHERE [Id] = ...;
Steps to reproduce
Eval.EFCore.DeleteInsteadUpdate.zip
Schema:
Container
1-nContainerRoom
n-1Product
Assume the following use case (where the room will be emptied):
Instead of updating the
ContainerRoom
it will be deleted!Workaround
Further technical details
EF Core version: 2.2.6
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: Visual Studio 2019, Version 16.1.6
The text was updated successfully, but these errors were encountered: