We are currently building a MVC 1.0 application and using Linq -> SQL for our DAL. If you are updating or loading or not doing, then after a persistent perspective, we have many actionable incidents.
At this point, what I am worried about again, editing and updating verbs are public signatures. Public Action Update (Inter Customer ID, Int ID, View Gross Model Models) Edit Public ActionControl (Input Customer ID, Int ID, View Gross Model Modell)
So the idea is that in the edit method we load our view modell and pass it in the view. The user changes the model and then postes back in the update method.
The first thing that I do to think is to get the visual model from the database again, copy the changes one by one from the post model and then submit it back, this will work, but Looks to me the witch.
What is the best way to include those changes in the database at this point?
Is this an easy way to get your model back again from DB, and update moderated or Manually update properties If you think you are suffering from performance problems and need to avoid another query, then check / replace the DB and caching models during the request cycle. Unless you actually do performance issues, I do not attempt to retain the model on the request cycle.
Comments
Post a Comment