
{"id":892,"date":"2012-01-02T22:13:33","date_gmt":"2012-01-03T03:13:33","guid":{"rendered":"http:\/\/www.ikriv.com\/blog\/?p=892"},"modified":"2012-01-02T22:13:33","modified_gmt":"2012-01-03T03:13:33","slug":"playing-with-entity-framework","status":"publish","type":"post","link":"https:\/\/ikriv.com\/blog\/?p=892","title":{"rendered":"Playing with Entity Framework"},"content":{"rendered":"<p>As certain other &#8220;highly integrated&#8221; Microsoft technologies, entity framework seems to be high maintenance when it comes to refactoring and moving things around.<\/p>\n<p>To move an <code>.emdx<\/code> file from one project to another, one needs to:<\/p>\n<ul>\n<li>Move the file itself<\/li>\n<li>Add a bunch of assembly references to the project and to the <code>system.web\/compilation\/assemblies<\/code> section of the <code>web.config<\/code><\/li>\n<li>Add at least three (3) special connection strings where the name of your model file, including the namespace is repeated about a dozen times, along with the name of your DB server and database.<\/li>\n<\/ul>\n<p>DRY (don&#8217;t repeat yourself) clearly does not apply here<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As certain other &#8220;highly integrated&#8221; Microsoft technologies, entity framework seems to be high maintenance when it comes to refactoring and moving things around. To move an .emdx file from one <a href=\"https:\/\/ikriv.com\/blog\/?p=892\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[3,14,4],"tags":[],"class_list":["entry","author-ikriv","post-892","post","type-post","status-publish","format-standard","category-dotnet","category-db","category-hack"],"_links":{"self":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=892"}],"version-history":[{"count":0,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/892\/revisions"}],"wp:attachment":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}