can we convert Odata metadata to C# code (datacontract)
问题 there is a odata webservice, i can get metadata from http://service-uri.com/$metadata which contains definition of all its model object, is there any tools that i can use, to convert that metadata xml to data contract class in C#? 回答1: The WCF Data Services Client library can generate C# classes for you from the $metadata endpoint. These classes won't have the [DataContract] attribute, but you can use them with the rest of the client library to interact with the service. To use this feature,