The DTO objects are classes generated based on a template. So they are used instead of the regular generated entities.
But the question would remain the same for both types of objects. (DTO and LLbl Entities)
Once you use them in WCF, the datacontractserializer will process all the properties that have a datamember attribute. What I want is to dynamically decide the ones I want in the resulting Json.
I know how to intercept it in the wcf pipeline but it seems a lot of code to just dynamically decide to use the DataMember attribute.
I need to decide myself if I want to serialize the property or not.