IsReference field of DataContract attribute

Topics: Service Factory Modeling Edition Forum
Jul 21, 2010 at 8:36 PM


I'm creating a WCF service and I need to set DataContract's field IsReference to 'true'. I've googled this hundreds of times and still have not found an answer: how can this be done in WSSF? One cannot do this in a partial class because it would need a DataContract attribute to be duplicated, so the only option is to have this set in generated class file. However I can't find a way to do this, looks like there's no corresponding property..

Thank you in advance,


Jan 30, 2014 at 11:18 PM
I am in the same boat. I wound up creating base classes and applying the DataContract attribute with IsReference attribute set to true. I then created partial classes and inherited from the base classes. This got the job done, however I would think there must be an easier/cleaner way to achieve this by setting a property directly in the model. Any updated info on this would be much appreciated.