odata.net
odata.net copied to clipboard
Add serialization and deserialization of Dictionary<string, string> and Dictionary<string, object>
Issues
This pull request fixes issue https://github.com/OData/WebApi/issues/438
Description
This pull request adds serialization and deserialization of Dictionary<string, string>.
Checklist (Uncheck if it is not completed)
- [ ] Test cases added
- [ ] Build and test with one-click build and test script passed
Note that I'm unsure whether registering the type as a PrimitiveType is how you saw the implementation. I'm also unsure about what kind of test cases, if any, you'd like to see added.
Also requires new KeyValuePair<Type, IEdmPrimitiveType>(typeof(Dictionary<string, string>), GetPrimitiveType(EdmPrimitiveTypeKind.DictionaryOfStringString)),
in Microsoft.AspNet.OData.Shared\Formatter\EdmLibHelpers.cs.
@mikepizzo Can you give me some points on how to proceed with this please?