I have a view model where I'm attempting to use the Model and Expose attributes. I've been trying to model my code after the PersonApplication example.
I declare a Catel property for the view model that will hold my model object. I am passing the model object that I wish to edit into the view model constructor. In the VM constructor, I am trying to set the property value, but when I do
that I get the following exception:
SerializationException was unhandled by user code. The constructor to deserialize an object of type MedicalLogModel.Patient ws not found.
I have decorated all of my model classes with the Serializable attribute. The object in question for the error is a related object to the one I am trying to edit. I am trying to edit a Prescription object which has a Patient property which is
a reference to a Patient object.
What am I missing?