Hi,
I have a CustomerView view and CustomerViewModel to add new customer to the system. It's based on Josh Smith's example, but with one extra thing. I've added new combo box which allows users to select an existing customer, which then populates and updates all the textboxes on the view. But this is where I have a problem.
The SelectedItem property of the combo box is bound to ComboSelectedItem property in CustomerViewModel, which updates the CustomerViewModel Customer object, such as (_customer = value). This Customer object is passed to CustomerViewModel constructor when it's first created and this is the object to be used for saving it to database.
My question is how do I use this _customer object when Save is selected. What I mean is, for instance the _customer object has column names such as create_date, modified_date etc. And if I use this same object those column values will be added to a new record, which would essentially come from the old/existing customer.
I find Josh Smith's example very helpful, but there is no explanation or example for the above case.
Thanks