{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenRIAServices/TestIssues/issues/74","labels_url":"https://api.github.com/repos/OpenRIAServices/TestIssues/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/OpenRIAServices/TestIssues/issues/74/comments","events_url":"https://api.github.com/repos/OpenRIAServices/TestIssues/issues/74/events","html_url":"https://github.com/OpenRIAServices/TestIssues/issues/74","id":127545838,"number":74,"title":"Using ObjectContext in EntityFramework6.x","user":{"login":"STAH","id":2418242,"avatar_url":"https://avatars.githubusercontent.com/u/2418242?v=3","gravatar_id":"","url":"https://api.github.com/users/STAH","html_url":"https://github.com/STAH","followers_url":"https://api.github.com/users/STAH/followers","following_url":"https://api.github.com/users/STAH/following{/other_user}","gists_url":"https://api.github.com/users/STAH/gists{/gist_id}","starred_url":"https://api.github.com/users/STAH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STAH/subscriptions","organizations_url":"https://api.github.com/users/STAH/orgs","repos_url":"https://api.github.com/users/STAH/repos","events_url":"https://api.github.com/users/STAH/events{/privacy}","received_events_url":"https://api.github.com/users/STAH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-19T21:44:21Z","updated_at":"2016-01-19T21:44:21Z","closed_at":null,"body":"<sub>This issue was imported from [CodePlex](http://openriaservices.codeplex.com/workitem/74)</sub>\r\n\r\n**[marcelgoldstein](https://github.com/marcelgoldstein)** <sup>wrote 2015-06-20 at 17:27</sup>\r\nIf using EntityFramework6.x with the T4 Template to generate an ObjectContext it uses the wrong namespace usings.\r\n\r\nFor example this, statement isn`t always true:\r\n\r\n```\r\n*#*if DBCONTEXT\nusing System.Data.Entity;\nusing System.Data.Entity.Core;\nusing System.Data.Entity.Core.Objects;\n*#*else\nusing System.Data;\nusing System.Data.Objects;\n*#*endif\r\n```\r\nIn my case i have an ObjectContext but need to use the \"System.Data.Entity.Core.\\*\" stuff. I had hit that for the \"LinqToEntitiesDomainService\".\r\n\r\nEdit: \r\nFount out, that the generated \"DomainService\", which derives from \"LinqToEntitiesDomainService\" do not get the using for the ExtensionMethods (using OpenRiaServices.DomainServices.EntityFramework.ObjectContextExtensions;)"}}