Microsoft Atlas Client Side Objects

As I have been working on a section on Complex Business Objects and Atlas, I ran across an interesting situation, which took me a while to figure out.  I have created a server side Animal object with three properties.  From a web client, I create an instance of the Animal object on the client.  Unfortunately, due to a lack of intellisense, I misspelled one of the properties on the client.  It was weird in that I appeared to be getting no error. Then it hit me.  I was getting an error, but merely "eating" it on the client and doing nothing with it.  I put in an error handler and there it was. 

The message was: "The type 'class name' does not have a public property or field name 'property name'.

I had figured that the system would ignore the incorrect property, but I am glad that it did not. The cool thing is that there is checking that happens on the server when an object gets sent back tot he server.  Cool.

Wally 

No Comments