{"action":"created","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/675","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/675/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/675/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/675/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/675","id":56331529,"number":675,"title":"AutoMapper Project().To<T> not support ResolveUsing","user":{"login":"yuezhongxin","id":6800671,"avatar_url":"https://avatars.githubusercontent.com/u/6800671?v=3","gravatar_id":"","url":"https://api.github.com/users/yuezhongxin","html_url":"https://github.com/yuezhongxin","followers_url":"https://api.github.com/users/yuezhongxin/followers","following_url":"https://api.github.com/users/yuezhongxin/following{/other_user}","gists_url":"https://api.github.com/users/yuezhongxin/gists{/gist_id}","starred_url":"https://api.github.com/users/yuezhongxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuezhongxin/subscriptions","organizations_url":"https://api.github.com/users/yuezhongxin/orgs","repos_url":"https://api.github.com/users/yuezhongxin/repos","events_url":"https://api.github.com/users/yuezhongxin/events{/privacy}","received_events_url":"https://api.github.com/users/yuezhongxin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-03T04:10:02Z","updated_at":"2015-02-03T05:47:38Z","closed_at":null,"body":"Hi, Test code:\r\n\r\n```cssharp\r\npublic List<OrderLineDTO> GetLinesForOrder(int orderId)\r\n{\r\n    Mapper.CreateMap<OrderLine, OrderLineDTO>()\r\n            .ForMember(dto => dto.Item, conf => conf.MapFrom(ol => ol.Item.Name)\r\n            .ForMember(dto => dto.Name, opt => opt.ResolveUsing<NameCustomResolver>());\r\n\r\n    using (var context = new orderEntities())\r\n    {\r\n        return context.OrderLines.Where(ol => ol.OrderId == orderId)\r\n                .Project().To<OrderLineDTO>().ToList();\r\n    }\r\n}\r\npublic class NameCustomResolver : ValueResolver<OrderLine, string>\r\n{\r\n    protected override string ResolveCore(OrderLine source)\r\n    {\r\n        //to do...\r\n        return source.Name;\r\n    }\r\n}\r\n```\r\n\r\nHowever, this is wrong, how can I fix it?"},"comment":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/comments/72596397","html_url":"https://github.com/AutoMapper/AutoMapper/issues/675#issuecomment-72596397","issue_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/675","id":72596397,"user":{"login":"yuezhongxin","id":6800671,"avatar_url":"https://avatars.githubusercontent.com/u/6800671?v=3","gravatar_id":"","url":"https://api.github.com/users/yuezhongxin","html_url":"https://github.com/yuezhongxin","followers_url":"https://api.github.com/users/yuezhongxin/followers","following_url":"https://api.github.com/users/yuezhongxin/following{/other_user}","gists_url":"https://api.github.com/users/yuezhongxin/gists{/gist_id}","starred_url":"https://api.github.com/users/yuezhongxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuezhongxin/subscriptions","organizations_url":"https://api.github.com/users/yuezhongxin/orgs","repos_url":"https://api.github.com/users/yuezhongxin/repos","events_url":"https://api.github.com/users/yuezhongxin/events{/privacy}","received_events_url":"https://api.github.com/users/yuezhongxin/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T05:47:38Z","updated_at":"2015-02-03T05:47:38Z","body":"When I use `Mapper.Map<,>`, custom resolvers for ProjectUsing is works.\r\n\r\n> Your EF provider can't interpret a custom resolver\r\n\r\nYou mean EF provider does not support(Including the latest EF7)? now, I this is the way to replace `Project().To<T>`:\r\n\r\n```cssharp\r\nusing (var context = new orderEntities())\r\n{\r\n\tvar query = from ol in context.OrderLines\r\n\t\t\t\twhere ol.OrderId == orderId\r\n\t\t\t\tselect new OrderLineDTO\r\n\t\t\t\t{\r\n\t\t\t\t\t///to do...you know(custom resolvers)\r\n\t\t\t\t\tName = ol.Name\r\n\t\t\t\t};\r\n\treturn await query.ToListAsync();\r\n}\r\n```\r\n\r\nBut the reality is more complicated than it would, if I had to use custom resolvers for ProjectUsing, how do I solve this problem better, or would like you said(similar)?"}}