{"id":283,"date":"2012-06-03T08:59:00","date_gmt":"2012-06-03T08:59:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/cesardelatorre\/2012\/06\/03\/coloring-entities-with-ef-5-0-rc-and-vs-2012-rc\/"},"modified":"2012-06-03T08:59:00","modified_gmt":"2012-06-03T08:59:00","slug":"coloring-entities-with-ef-5-0-rc-and-vs-2012-rc","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/coloring-entities-with-ef-5-0-rc-and-vs-2012-rc\/","title":{"rendered":"Coloring Entities with EF 5.0 RC and VS.2012 RC"},"content":{"rendered":"<p>In<strong> Visual Studio 2012 RC<\/strong> (the Release Candidate was released last week on May 31st 2012) and <strong>Entity Framework 5.0 RC<\/strong>, the <strong>Entity Designer<\/strong> surface of EF MODEL\/DATABASE FIRST, now supports <strong>entity shape coloring<\/strong>. <br \/>This is really nice to differentiate categories, like when you have several <strong>AGGREGATES<\/strong> within your <strong>MODEL<\/strong>, etc.<\/p>\n<p>Here is a sneak peak of what we have in the RC:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/32\/2019\/03\/4186.image_5276E4C4.png\"><img decoding=\"async\" width=\"846\" height=\"411\" title=\"image\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/32\/2019\/03\/3404.image_thumb_2AC042CD.png\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>On the other hand, when dealing with DDD Domain Models (Domain Driven Design approach), I think EF CODE-FIRST fits much better (No anemic-domain-model, entity classes can have their own logic in a straightforward way, just adding methods, etc.). Using this second approach (CODE-FIRST), we directly create\/code entities as classes and therefore we don&rsquo;t use any Entity Designer.<\/p>\n<p>Sure, you could always add partial clases with methods and logic&nbsp;to the entity classes generated by the visual entity designer&nbsp;or POCO entity T4 templates, but that is kind of a workaround.. It is not so &#8216;clean code&#8217;. \ud83d\ude09<\/p>\n<p>In any case, having the entity shape coloring is very convenient to differentiate categories, if you are using the visual Entity Designer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Visual Studio 2012 RC (the Release Candidate was released last week on May 31st 2012) and Entity Framework 5.0 RC, the Entity Designer surface of EF MODEL\/DATABASE FIRST, now supports entity shape coloring. This is really nice to differentiate categories, like when you have several AGGREGATES within your MODEL, etc. Here is a sneak [&hellip;]<\/p>\n","protected":false},"author":362,"featured_media":12806,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[48,103],"class_list":["post-283","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cesardelatorre","tag-entity-framework","tag-visual-studio-2012"],"acf":[],"blog_post_summary":"<p>In Visual Studio 2012 RC (the Release Candidate was released last week on May 31st 2012) and Entity Framework 5.0 RC, the Entity Designer surface of EF MODEL\/DATABASE FIRST, now supports entity shape coloring. This is really nice to differentiate categories, like when you have several AGGREGATES within your MODEL, etc. Here is a sneak [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/comments?post=283"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts\/283\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/media\/12806"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/media?parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/categories?post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/tags?post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}