Otis wrote:
Remoting will re-create instances using data passed between client and server. This means that keeping a reference to an object and comparing it later on with a received entity is not going to work, as the received entity will always be different, as it is re-created.
Normally, you return the service as MarshallByRef and pass the entities by value.
Believe it or now I know about the above and that we're actually getting a new instance of the object. So by judging from the answer there isn't really anything wrong with the way I'm doing it. The question whould then be..
Why do
_currentContact = XXX...UpdateContactEntity(_currentContact);
if we can just do
XXX...UpdateContactEntity(_currentContact);
?
Sorry for making this a not-so-quick question.
ps. And thanks for a great product. It's such a relive not having to write any more queries for 10 table dataset business objects.