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
We want to add an attachment and then soft delete the entity.
But the result is: the entity is soft deleted while the attachment is not successfully added, if the entity has previously attached the attachment will be soft deleted.
When you delete an entity, ABP reloads it from database (this is the safest way to reset an entity's state), sets IsDeleted = true (and audit properties) and saves again.
It's not expected to change a property of an entity before delete it. Soft delete should be thought as a real delete.
Abp 2.3.0.0
EF 6.1.3
Two entities are inherited from
ISoftDelete
interfaces, one-to-many relationship.We want to add an attachment and then soft delete the entity.
But the result is: the entity is soft deleted while the attachment is not successfully added, if the entity has previously attached the attachment will be soft deleted.
@hikalkan why is it like this?
The text was updated successfully, but these errors were encountered: