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
The behaviour of the method was surprising at first site but I would not consider it a bug. My question is, do we want to adjust the method in the future? We shhould probably add a better comment do describe the behaviour, but do we need an extension method to just add a collection of recipes?
All recipes that are not in the collection given as a parameter are deleted from the database when you call that method. What I and @dacky179 expected, however, was that the given recipes would be added to the existing ones or update them.
All recipes that are not in the collection given as a parameter are deleted from the database when you call that method
Ahh okay this is really missleading - I also would not expect that Save.. removes something. I would remove that from the method and provide a RemoveRecipes(recipes) method.
All recipes that are not in the collection given as a parameter are deleted from the database when you call that method
Ahh okay this is really missleading - I also would not expect that Save.. removes something. I would remove that from the method and provide a RemoveRecipes(recipes) method.
This would however break exisiting behavior. The original idea and usage of the old UI was:
GetRecipes(...)
Modifiy collection, remove, add und update objects
Call SaveRecipes
Somewhere from WCF internal endpoint to facade use Web endpoint we broke this. I generally agree though, Save should not delete things
The behaviour of the method was surprising at first site but I would not consider it a bug. My question is, do we want to adjust the method in the future? We shhould probably add a better comment do describe the behaviour, but do we need an extension method to just add a collection of recipes?
@dbeuchler, @Toxantron, @dacky179
MORYX-Framework/src/Moryx.Products.Management/Implementation/Storage/ProductStorage.cs
Line 235 in 944b02b
The text was updated successfully, but these errors were encountered: