{"id":168,"date":"2013-07-24T12:23:20","date_gmt":"2013-07-24T08:23:20","guid":{"rendered":"http:\/\/infobs.athn.ru\/?p=168"},"modified":"2013-07-24T12:23:20","modified_gmt":"2013-07-24T08:23:20","slug":"nastroyka-automapper-dlya-subklassov","status":"publish","type":"post","link":"https:\/\/infobase.athn.ru\/program\/2013\/07\/nastroyka-automapper-dlya-subklassov\/","title":{"rendered":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 AutoMapper \u0434\u043b\u044f \u0441\u0443\u0431\u043a\u043b\u0430\u0441\u0441\u043e\u0432"},"content":{"rendered":"<pre>\nMapper.CreateMap()\n  .Include()\n  .Include()\n  .Include();\nMapper.CreateMap();\nMapper.CreateMap();\nMapper.CreateMap();\n\nvar items = Repo.GetAll();\nMapper.Map(items, new List());\n<\/pre>\n<p>http:\/\/stackoverflow.com\/questions\/4513302\/how-do-i-use-automapper-to-map-multiple-subclasses-into-one-class<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mapper.CreateMap() .Include() .Include() .Include(); Mapper.CreateMap(); Mapper.CreateMap(); Mapper.CreateMap(); var items = Repo.GetAll(); Mapper.Map(items, new List()); http:\/\/stackoverflow.com\/questions\/4513302\/how-do-i-use-automapper-to-map-multiple-subclasses-into-one-class<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[61,119],"class_list":["post-168","post","type-post","status-publish","format-standard","hentry","category-csharp","tag-automapper","tag-subclass"],"_links":{"self":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/comments?post=168"}],"version-history":[{"count":0,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/posts\/168\/revisions"}],"wp:attachment":[{"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/media?parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/categories?post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infobase.athn.ru\/program\/wp-json\/wp\/v2\/tags?post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}