<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>EDMGen2 – Now with Reverse Engineering options</title><link>http://blogs.msdn.com/b/adonet/archive/2009/04/05/edmgen2-now-with-reverse-engineering-options.aspx</link><description>The information in this post is out of date. 
 Visit msdn.com/data/ef for the latest information on current and past releases of EF. 
 
 
 Visual Studio 2008 and .Net 3.5 SP1 come with two tools that are capable of supporting a database-first application</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: EDMGen2 – Now with Reverse Engineering options</title><link>http://blogs.msdn.com/b/adonet/archive/2009/04/05/edmgen2-now-with-reverse-engineering-options.aspx#10027983</link><pubDate>Mon, 21 Jun 2010 16:01:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10027983</guid><dc:creator>Mac Photo Recovery</dc:creator><description>&lt;p&gt;Recover your lost digital images, audio, video and data files with MediaRECOVER software.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10027983" width="1" height="1"&gt;</description></item><item><title>re: EDMGen2 – Now with Reverse Engineering options</title><link>http://blogs.msdn.com/b/adonet/archive/2009/04/05/edmgen2-now-with-reverse-engineering-options.aspx#9911169</link><pubDate>Thu, 22 Oct 2009 07:38:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9911169</guid><dc:creator>walter verhoeven</dc:creator><description>&lt;p&gt;In my case the code was generating inheritance &amp;nbsp;in reverse. &lt;/p&gt;
&lt;p&gt;intresting problem&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9911169" width="1" height="1"&gt;</description></item><item><title>re: EDMGen2 – Now with Reverse Engineering options</title><link>http://blogs.msdn.com/b/adonet/archive/2009/04/05/edmgen2-now-with-reverse-engineering-options.aspx#9575719</link><pubDate>Wed, 29 Apr 2009 16:31:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9575719</guid><dc:creator>dsoltesz</dc:creator><description>&lt;p&gt;I would have to agree with pop that this tool needs to support integer (fk) hierachies.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9575719" width="1" height="1"&gt;</description></item><item><title>Interesting reads</title><link>http://blogs.msdn.com/b/adonet/archive/2009/04/05/edmgen2-now-with-reverse-engineering-options.aspx#9574905</link><pubDate>Wed, 29 Apr 2009 06:37:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9574905</guid><dc:creator>Meta-Me</dc:creator><description>&lt;p&gt;Over the weekend in between run throughs that I did prepping for a webcast, I did some catch-up blog&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9574905" width="1" height="1"&gt;</description></item><item><title>re: EDMGen2 – Now with Reverse Engineering options</title><link>http://blogs.msdn.com/b/adonet/archive/2009/04/05/edmgen2-now-with-reverse-engineering-options.aspx#9534289</link><pubDate>Mon, 06 Apr 2009 22:47:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9534289</guid><dc:creator>Pop Catalin</dc:creator><description>&lt;p&gt;Instead of automatic identification of TPH patterns, I think I'd prefer a functionality in the designer that creates a hierarchy from values of &amp;nbsp;a user selected column or if the column is a FK the related table values. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;We never use char columns as discriminants for entity hierarchies, we always use integer columns that are foreign keys to other tables that serve as enumerations. (the reasons are FK integrity checks, easier localization, reduced row size (which is very important that it doesn't grow very large as our tables are pretty big, and performance is always an issue)).&lt;/p&gt;
&lt;p&gt;Also we have far more complex rules for hierarchies, involving multiple columns. Ex:&lt;/p&gt;
&lt;p&gt;Product(Source_ID, Destination_ID, ... ) - Source_ID and Destination_ID reference ProductionLines.&lt;/p&gt;
&lt;p&gt; - When Source_ID == Destination_ID the entity stored in the row is a TransformedProduct (which also has more types).&lt;/p&gt;
&lt;p&gt; - When Source_ID != Destination_ID the entity stored is a LoadPackage.&lt;/p&gt;
&lt;p&gt;(*this model is not supported by EF as a hierarchy)&lt;/p&gt;
&lt;p&gt;Sometime the discriminants &amp;nbsp;are on more columns. For example we have recipe tables, and each line, can be a recipe header (which can also be a processing header a processing group header, a faze header, a chemical product group header etc) , a processing line (witch can also be of many types), a chemical product (of more types...) etc, and the discriminants are on different columns witch are of different types (int, bit) determined by null value of some columns or by column value.&lt;/p&gt;
&lt;p&gt;More modeling capabilities are always welcome, but I sincerely doubt that automatic determination of hierarchy as it is, is a real world useful tool or that it brings more value than, let's say an easy way to create a hierarchy or subhierarchy using the designer, using a selected discriminant.&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pop Catalin&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9534289" width="1" height="1"&gt;</description></item><item><title>Entity Framework Model Generation with TPH Detection</title><link>http://blogs.msdn.com/b/adonet/archive/2009/04/05/edmgen2-now-with-reverse-engineering-options.aspx#9531804</link><pubDate>Sun, 05 Apr 2009 13:09:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9531804</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;URL : &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/adonet/archive/2009/04/04"&gt;http://blogs.msdn.com/adonet/archive/2009/04/04&lt;/a&gt;... One of my favorite patterns in the Entity Framework&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9531804" width="1" height="1"&gt;</description></item><item><title>EDMGen2 ??? Now with Reverse Engineering options | ASP.NET MVC</title><link>http://blogs.msdn.com/b/adonet/archive/2009/04/05/edmgen2-now-with-reverse-engineering-options.aspx#9531716</link><pubDate>Sun, 05 Apr 2009 09:45:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9531716</guid><dc:creator>EDMGen2 ??? Now with Reverse Engineering options | ASP.NET MVC</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://aspmvc.co.cc/2009/04/04/edmgen2-%e2%80%93-now-with-reverse-engineering-options/"&gt;http://aspmvc.co.cc/2009/04/04/edmgen2-%e2%80%93-now-with-reverse-engineering-options/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9531716" width="1" height="1"&gt;</description></item></channel></rss>