Attributes will not be serialized when your data is transferred by cable. The new attribute that you created in the essential metadata that is associated with this property and the type in which the property belongs. This is not data and will not be available.
I assume that you have added a service link to your asp.net mpc application, it will, if not specified, create new proxy classes that represent your data contract.
When you add a link to a service, if you click on the advanced button, make sure the "Use existing types" checkbox is selected. This ensures that your service will use your existing project.
This may not be best practice, because the client application will need to know about the type that you are returning from the service. This may be good if your service is used only by you, in which case you will need to add a link to your contract in your asp.net mpc application.
Rohan west
source share