Dear all,
In my current project, i have classes with more than 100 properties. i am using WCF service to retrieve data and view it as required in the application. During execution of the application, there are different scenarios and with each scenario i need different properties of a class. sometime 3, sometime 8, sometime 15 properties etc. As the class is very big, i want to return only those properties that don't have null value or properties have values other than null value should return from wcf service [to reduce load and avoid unnecessary data]. so finally i need only the 3, 8, 15 properties from wcf service method call.
the wcf service is using wshttpbinding and i am working on mvc web application where call to the wcf is done using ajax whenever required. this requirement is specially for this ajax call response data that vary on different scenarios.
please tell how i can do this more efficiently. please share code snippet to help me.
Many Thanks