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
I have a problem with owned types. When CurrentValues.SetValues method is called to partially update an entity, primitive properties are updated correctly, but owned types are not.
BUG: CurrentValues.SetValues does not update owned types, but any other primitive properties are updated.
varcustomer= Set.Find(1L);varnewCustomer=new{
Id =1L,
Name =new{
FirstName ="Updated Name"}}
_context.Entry(customer).CurrentValues.SetValues(newCustomer);
The text was updated successfully, but these errors were encountered:
rafaelfgx
changed the title
Bug: CurrentValues.SetValues does not update owned types, but any other primitive properties are updated
[BUG] CurrentValues.SetValues does not update owned types, but any other primitive properties are updated
Jun 3, 2021
Hi guys,
I have a problem with owned types. When CurrentValues.SetValues method is called to partially update an entity, primitive properties are updated correctly, but owned types are not.
Entity
Value Object (Owned Type)
Entity Type Configuration
BUG: CurrentValues.SetValues does not update owned types, but any other primitive properties are updated.
The text was updated successfully, but these errors were encountered: