Hello GBR,
Create a helper class that does the comparison. Anything that involves
generated classes will be lost when they are regenerated
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
> I have a WebService method that sends to the client an object array
> received from the server as a collection. Each element in the object
[quoted text clipped - 6 lines]
> stripped the methods. What is the best way I can compare if the class
> entity field values have changed?
GBR - 02 Mar 2005 03:23 GMT
Hi Dilip,
Could you please explain what you mean by Helper Class?
For now, I have implemented an alternate solution. I wanted to write
something generic to compare the object entity values received on the client
through web services. Since none of the object enetity methods cannot be
accesses on the client, I wrote a small function that uses reflection to peep
into the object entity class and compare the values associated with the
object entity fields.
I am not sure if this is a good way of doing it but it works. I pass 2
objects into this new function and it does the rest of the comparison.
Thanks,
> Hello GBR,
> Create a helper class that does the comparison. Anything that involves
[quoted text clipped - 17 lines]
> > stripped the methods. What is the best way I can compare if the class
> > entity field values have changed?
Dilip Krishnan - 02 Mar 2005 03:36 GMT
Hello GBR,
> I am not sure if this is a good way of doing it but it works. I pass 2
> objects into this new function and it does the rest of the comparison.
Exactly what I meant by a Helper class.
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com