{"id":273,"date":"2012-06-03T09:27:00","date_gmt":"2012-06-03T09:27:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/cesardelatorre\/2012\/06\/03\/creating-several-entity-diagrams-within-a-single-model-in-ef-5-0-and-visual-studio-2012\/"},"modified":"2012-06-03T09:27:00","modified_gmt":"2012-06-03T09:27:00","slug":"creating-several-entity-diagrams-within-a-single-model-in-ef-5-0-and-visual-studio-2012","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/creating-several-entity-diagrams-within-a-single-model-in-ef-5-0-and-visual-studio-2012\/","title":{"rendered":"Creating several Entity Diagrams within a single Model in EF 5.0 and Visual Studio 2012"},"content":{"rendered":"<p>This feature is killer and it\u2019s been waited for long time by any developer or company who use EF visual models with a lot of entities.<\/p>\n<p>Think about a model where you have hundreds of entities.., opening a single diagram with 200 entities doesn\u2019t make sense and it is too slow and kind of unmanageable. <\/p>\n<p>Now, with EF 5.0 and Visual Studio 2012, you can have many diagrams that visually Split the same entity model. This is cool, even more than the coloring feature. <\/p>\n<p>For instance, in the model below, I have selected a group of entities (entities related with \u2018Customer\u2019), then you right-click on any of those entities and select the \u201cMode to new Diagram\u201d option:<\/p>\n<p>&#160;<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/32\/2019\/03\/4643.image_4A0089CA.png\"><img decoding=\"async\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/32\/2019\/03\/6354.image_thumb_53692273.png\" width=\"820\" height=\"443\" \/><\/a><\/p>\n<p>So now I can have a simpler entity diagram showing only the entities related to \u2018Customer\u2019. In this case, I called \u2018CRM\u2019 to this second diagram:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/32\/2019\/03\/1018.image_138F1621.png\"><img decoding=\"async\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/32\/2019\/03\/4606.image_thumb_1A31F9D7.png\" width=\"822\" height=\"475\" \/><\/a><\/p>\n<p>You can also do it in a COPY\/PASTE way. so, any entity can be showed in several diagrams, etc.<\/p>\n<p>I want to highlight that both diagrams are like a VIEW of the same MODEL, which has all the entities.<\/p>\n<p><strong>A given MODEL (.edmx) can have now many visual DIAGRAMS<\/strong>. This is really convenient for visually isolating certain areas of high complex and large models. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>This feature is killer and it\u2019s been waited for long time by any developer or company who use EF visual models with a lot of entities. Think about a model where you have hundreds of entities.., opening a single diagram with 200 entities doesn\u2019t make sense and it is too slow and kind of unmanageable. [&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":[],"class_list":["post-273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cesardelatorre"],"acf":[],"blog_post_summary":"<p>This feature is killer and it\u2019s been waited for long time by any developer or company who use EF visual models with a lot of entities. Think about a model where you have hundreds of entities.., opening a single diagram with 200 entities doesn\u2019t make sense and it is too slow and kind of unmanageable. [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts\/273","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=273"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/posts\/273\/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=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cesardelatorre\/wp-json\/wp\/v2\/tags?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}