I have a table with many-to-many relationships.
Let's call it 'UserRole' which means it's a table that stores the relationship of users to roles.
For some reason, I need to manipulate this data in the UI, so I created a view model and a simple mapper for it, where I configure the data from the entity to the view model and vice versa.
After making some adjustments to the table in the UI, I save my changes.
And as a result, I have a saved duplication of data.
I have a table with many-to-many relationships. Let's call it 'UserRole' which means it's a table that stores the relationship of users to roles. For some reason, I need to manipulate this data in the UI, so I created a view model and a simple mapper for it, where I configure the data from the entity to the view model and vice versa. After making some adjustments to the table in the UI, I save my changes. And as a result, I have a saved duplication of data.