Remove __metadata tag from an odata response
I'd like to remove the __metadata tag from responses in my odata queries. I know you can use $select to specify what fields you want, but I can't seem to get r开发者_JAVA百科id of __metadata. This would compact my queries by about 50 to 75%.
Any ideas on how you can remove the __metadata tag?
This has already been discussed in this question: WCF Data Services: How to avoid the __metadata members In short the WCF Data Services product doesn't support this currently. The main reason is, that the returned data is not OData compliant anymore as well as it might make it impossible for clients to perform certain types of operations.
精彩评论