Override IsReference

Apr 4, 2012 at 4:21 PM


I have a project containing an entity set, where each entity is marked with the DataContract IsReference = true (windows app using json.net). I'm now adding a new web client, and I don't want $ref / $id to be sent to the web client as it doesn't seem to understand this notation. I've tried setting PreserveReferencesHandling to none, but I'm guessing the IsReference attribute is overriding this. Is there another way to tell json.net to not use references?

Many thanks.