{"action":"created","issue":{"url":"https://api.github.com/repos/OData/WebApi/issues/467","labels_url":"https://api.github.com/repos/OData/WebApi/issues/467/labels{/name}","comments_url":"https://api.github.com/repos/OData/WebApi/issues/467/comments","events_url":"https://api.github.com/repos/OData/WebApi/issues/467/events","html_url":"https://github.com/OData/WebApi/issues/467","id":100049344,"number":467,"title":"In Odata Service unable to generate metadata for Dictionary property","user":{"login":"ashuthinks","id":3287696,"avatar_url":"https://avatars.githubusercontent.com/u/3287696?v=3","gravatar_id":"","url":"https://api.github.com/users/ashuthinks","html_url":"https://github.com/ashuthinks","followers_url":"https://api.github.com/users/ashuthinks/followers","following_url":"https://api.github.com/users/ashuthinks/following{/other_user}","gists_url":"https://api.github.com/users/ashuthinks/gists{/gist_id}","starred_url":"https://api.github.com/users/ashuthinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashuthinks/subscriptions","organizations_url":"https://api.github.com/users/ashuthinks/orgs","repos_url":"https://api.github.com/users/ashuthinks/repos","events_url":"https://api.github.com/users/ashuthinks/events{/privacy}","received_events_url":"https://api.github.com/users/ashuthinks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-10T12:11:25Z","updated_at":"2015-08-10T13:56:33Z","closed_at":null,"body":"In Employee.cs\r\n\r\n public class Employee\r\n    {\r\n        public int Id { get; set; }\r\n        public string Name { get; set; }\r\n        public string test { get; set; }\r\n        public Dictionary < string, object > _map;\r\n    }\r\nIn WebApiConfig.cs\r\nODataConventionModelBuilder builder = new ODataConventionModelBuilder();\r\n            builder.EntitySet<Employee>(\"Employees\");\r\n            config.MapODataServiceRoute(\r\n            routeName: \"ODataRoute\",\r\n            routePrefix: \"odata\",\r\n            model: builder.GetEdmModel());\r\n\r\nGenerated metadata is `http://localhost:52038/odata/$metadata`\r\n\r\n    <edmx:Edmx xmlns:edmx=\"http://docs.oasis-open.org/odata/ns/edmx\" Version=\"4.0\">\r\n    <edmx:DataServices>\r\n    <Schema xmlns=\"http://docs.oasis-open.org/odata/ns/edm\" Namespace=\"MyService.Models\">\r\n    <EntityType Name=\"Employee\">\r\n    <Key>\r\n    <PropertyRef Name=\"Id\"/>\r\n    </Key>\r\n    <Property Name=\"Id\" Type=\"Edm.Int32\" Nullable=\"false\"/>\r\n    <Property Name=\"Name\" Type=\"Edm.String\"/>\r\n    <Property Name=\"test\" Type=\"Edm.String\"/>\r\n    </EntityType>\r\n    </Schema>\r\n    <Schema xmlns=\"http://docs.oasis-open.org/odata/ns/edm\" Namespace=\"Default\">\r\n    <EntityContainer Name=\"Container\">\r\n    <EntitySet Name=\"Employees\" EntityType=\"MyService.Models.Employee\"/>\r\n    </EntityContainer>\r\n    </Schema>\r\n    </edmx:DataServices>\r\n    </edmx:Edmx>\r\n\r\nhere property is missing public  Dictionary< string , object > _map why so? any clue?\r\nbut when I use property like public  Dictionary< string , string  > _map2 it works great."},"comment":{"url":"https://api.github.com/repos/OData/WebApi/issues/comments/129461778","html_url":"https://github.com/OData/WebApi/issues/467#issuecomment-129461778","issue_url":"https://api.github.com/repos/OData/WebApi/issues/467","id":129461778,"user":{"login":"object","id":252126,"avatar_url":"https://avatars.githubusercontent.com/u/252126?v=3","gravatar_id":"","url":"https://api.github.com/users/object","html_url":"https://github.com/object","followers_url":"https://api.github.com/users/object/followers","following_url":"https://api.github.com/users/object/following{/other_user}","gists_url":"https://api.github.com/users/object/gists{/gist_id}","starred_url":"https://api.github.com/users/object/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/object/subscriptions","organizations_url":"https://api.github.com/users/object/orgs","repos_url":"https://api.github.com/users/object/repos","events_url":"https://api.github.com/users/object/events{/privacy}","received_events_url":"https://api.github.com/users/object/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T13:56:32Z","updated_at":"2015-08-10T13:56:32Z","body":"You can't expose any CLR type over OData protocol. Bear in mind that your OData service exposes your data over HTTP, and clients can run on various platforms, including mobile. Since \"object\" says nothing about the underlying type of an instance behind it, you must redesign your service to expose Edm-compatible types."}}