luedi wrote:
Hi Andre,
for this reason i prefer to work with unbound objects. I have a BindData() and UnbindData() in my forms where we bind and unbind our object graph manually to the user controls. So we are able to instantiate objects only when needed. Another advantage for me is the full control over the process. We can decide ourselves when the obeject graph needs to be updated with the user input, we can make any conversions needed to display our data.
Regards
Klaus
Klaus,
Is this what you mean,
Form.BindData()
{
...
if(Person.Address = null)
Person.Address = new Address()
...
}
If so, this is our current solution that we'd like to avoid. There's still ugly issue of checking for modifications to Address so it wouldn't be saved as an empty domain object in database.
... or you are just binding to value object as opposed to domain object?
Thanks for reply!
Andre