Ignoring server properties


So, let’s say that you have an ADO.NET Data Service, and you’re creating a client application that accesses the data. A month from now, a new property is added on the server which really doesn’t impact you – how do you make sure that your client application isn’t broken?


Enter the IgnoreMissingProperties property on DataServiceContext. When this property is set to true, properties that are sent from the server but don’t have a matching property on the client won’t cause queries to fail.


Enjoy!


PS: thanks to Timothy Khouri for providing the inspiration for this post.

Comments (0)

Skip to main content