<?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>Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx</link><description>One of the coolest features of the ADO.NET Entity Framework is the ability to use inheritance in your database! Very cool, but what does it mean, and why is it important? War of the worlds Relational The world of relational data is based around tuples,</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#1890681</link><pubDate>Fri, 16 Mar 2007 02:44:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1890681</guid><dc:creator>jvierra</dc:creator><description>&lt;p&gt;One thing I can see when looking at the blog source is that there is a fair amount of bloat due to teh MSOffice formatting.&lt;/p&gt;
&lt;p&gt;I wonder if, under some circumstances, this may cause slow rendering performance?&lt;/p&gt;
&lt;p&gt;I mention this because, on many sites, IE7 tends to build it's page very slowly. &amp;nbsp;Not this on for me but it does happen. &amp;nbsp;The same site on IE6 render norrmally.&lt;/p&gt;
&lt;p&gt;Is it machine settings or IE7 issues with some layouts?&lt;/p&gt;
</description></item><item><title>Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#1895955</link><pubDate>Fri, 16 Mar 2007 22:31:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1895955</guid><dc:creator>ArchitectualInsight</dc:creator><description>&lt;p&gt;I was/am so busy in two projects , there was no time for any blah blah and blogging.. I still don't have&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#1896794</link><pubDate>Sat, 17 Mar 2007 01:56:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1896794</guid><dc:creator>Giancarlo Sudano</dc:creator><description>&lt;p&gt;how do you manage polimorphic query with inheritance?&lt;/p&gt;
&lt;p&gt;In NHibernate if I use a TPC strategy, and I create a query &amp;quot;from BaseClass&amp;quot; I usually obtain a SELECT with UNION from all several table per concrete. &lt;/p&gt;
&lt;p&gt;Normally for a polimorphic query a TPH or a Table per Subclass strategy (S.Ambler definition) is better.&lt;/p&gt;
&lt;p&gt;Do Entity Framework manages polimorphic query?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#1900213</link><pubDate>Sat, 17 Mar 2007 16:29:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1900213</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;First things first, how about adding 1:1 support &amp;nbsp;:)&lt;/p&gt;
&lt;p&gt;Isn't that missing from this CTP?&lt;/p&gt;
&lt;p&gt;By the way, I'd like to have the EF use an NHibernate approach where mapping files are used as above, without cluttering the entity/value objects.&lt;/p&gt;
</description></item><item><title>New and Notable 149</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#1903742</link><pubDate>Sun, 18 Mar 2007 05:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1903742</guid><dc:creator>Sam Gentile</dc:creator><description>&lt;p&gt;Yup, I'm still stuck in Seattle and I still feel like crap. Tomas just went off to the airport and I&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#1908316</link><pubDate>Sun, 18 Mar 2007 21:24:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1908316</guid><dc:creator>Erick Thompson</dc:creator><description>&lt;p&gt;re: Do Entity Framework manages polimorphic query?&lt;/p&gt;
&lt;p&gt;Entity Framework queries can indeed handle polymorphic queries, in that you can query for a base type, derived type, etc. &lt;/p&gt;
&lt;p&gt;re: By the way, I'd like to have the EF use an NHibernate approach where mapping files are used as above, without cluttering the entity/value objects.&lt;/p&gt;
&lt;p&gt;With the Entity Framework, the mapping files all live on thier own, so there is no merging of mapping, store and objects. In additon, with a forthcoming release of the Entity Framework, we will be supporting the ability to use your own objects (not using our code gen) with the EF.&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#1925260</link><pubDate>Wed, 21 Mar 2007 15:25:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1925260</guid><dc:creator>Arjen de Blok</dc:creator><description>&lt;p&gt;I would also like that to use the POCO style from NHibernate with the Entity Framework.&lt;/p&gt;
&lt;p&gt;Thus that the entity classes have no dependency on the entity framework. So no specific base classes where you must derive from or .NET attributes. &lt;/p&gt;
&lt;p&gt;Implementing interfaces like INotifyPropertyChanged is no problem for me.&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#1928859</link><pubDate>Thu, 22 Mar 2007 08:05:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1928859</guid><dc:creator>Steve.Walker@gmail.com</dc:creator><description>&lt;p&gt;How might one implement the entity framework from an ETL standpoint? Is that a valid idea at all? &amp;nbsp;e.g. pre-ado.net data access layer...&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#1928860</link><pubDate>Thu, 22 Mar 2007 08:05:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1928860</guid><dc:creator>Steve.S.Walker@gmail.com</dc:creator><description>&lt;p&gt;How might one implement the entity framework from an ETL standpoint? Is that a valid idea at all? &amp;nbsp;e.g. pre-ado.net data access layer...&lt;/p&gt;
</description></item><item><title>Resumo da semana - 26/03/07</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#1952837</link><pubDate>Mon, 26 Mar 2007 18:36:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1952837</guid><dc:creator>Console.Write(this.Opinion)</dc:creator><description>&lt;p&gt;Esta semana n&amp;#227;o foi t&amp;#227;o animada quanto a semana passada.. ASP.Net S&amp;#233;bastien Just fez uma compila&amp;#231;&amp;#227;o das&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#2012782</link><pubDate>Mon, 02 Apr 2007 19:19:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2012782</guid><dc:creator>WeLikeIke</dc:creator><description>&lt;p&gt;I can't seem to get an Association/AssociationSet End Role in a .csdl file to work if the End Role type is derived from the EntitySet type. &amp;nbsp;Is that even a possible scenario? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The other part of that problem is that apparantly in the .msl file, I must include the mappings for all types derived from a base object within the base object's EntitySetMapping node. &amp;nbsp;Otherwise I get an error stating that a particular TableMappingFragment is basically defined twice and could lead to data corruption.&lt;/p&gt;
&lt;p&gt;In other words, using the example .csdl at...&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/adonet/archive/2007/02/12/entity-data-model-101-part-2.aspx"&gt;http://blogs.msdn.com/adonet/archive/2007/02/12/entity-data-model-101-part-2.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;...how would you change the type of the End Role &amp;quot;ManagedEmployee&amp;quot; in Association &amp;quot;FK_Employee_Employee_ManagerID&amp;quot; from &amp;quot;Employee&amp;quot; to &amp;quot;SalesEmployee&amp;quot;?&lt;/p&gt;
&lt;p&gt;Thanks...&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#2013170</link><pubDate>Mon, 02 Apr 2007 20:47:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2013170</guid><dc:creator>WeLikeIke</dc:creator><description>&lt;p&gt;Uhh..I think I found the answer which stinks if true. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again, from &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/adonet/archive/2007/02/12/entity-data-model-101-part-2.aspx"&gt;http://blogs.msdn.com/adonet/archive/2007/02/12/entity-data-model-101-part-2.aspx&lt;/a&gt; ...&lt;/p&gt;
&lt;p&gt;&amp;quot;Any associations using a derived type must be declared on the base type because the derived type does not declare an entity set in the entity container. The entity set is needed to define the scope of an association using the derived type.&amp;quot;&lt;/p&gt;
&lt;p&gt;Please say it ain't so. &amp;nbsp;To me, that seems like a severe limitation.&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#2013235</link><pubDate>Mon, 02 Apr 2007 21:03:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2013235</guid><dc:creator>WeLikeIke</dc:creator><description>&lt;p&gt;Found more regarding derived type associations (relationships). &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess that functionality is being considered:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=967167&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=967167&amp;amp;SiteID=1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sure would be nice if it gets included...&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#7987758</link><pubDate>Sun, 02 Mar 2008 12:33:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7987758</guid><dc:creator>Paymon Khamooshi</dc:creator><description>&lt;p&gt;It will be great to add a standard Parse() method to the database context's table properties to accept the ToString() value of an instance and do the query based on the configurations.&lt;/p&gt;
&lt;p&gt;Currently the developer needs to know which field to search for, i.e:&lt;/p&gt;
&lt;p&gt;dbContext.Publishers.Single(p =&amp;gt; p.Name == &amp;quot;Wrox&amp;quot;)&lt;/p&gt;
&lt;p&gt;this can be simplified as &lt;/p&gt;
&lt;p&gt;dbContext.Publishers.Parse(&amp;quot;Wrox&amp;quot;)&lt;/p&gt;
</description></item><item><title>ADO.NET team blog : Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#8566978</link><pubDate>Sat, 31 May 2008 21:28:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8566978</guid><dc:creator>Dating</dc:creator><description>&lt;p&gt;One of the coolest features of the ADO.NET Entity Framework is the ability to use inheritance in your database! Very cool, but what does it mean, and why is it important? War of the worlds Relational The world of relational data is based around tuples&lt;/p&gt;
</description></item><item><title>ADO.NET team blog : Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#8574925</link><pubDate>Thu, 05 Jun 2008 13:20:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8574925</guid><dc:creator>Weddings</dc:creator><description>&lt;p&gt;One of the coolest features of the ADO.NET Entity Framework is the ability to use inheritance in your database! Very cool, but what does it mean, and why is it important? War of the worlds Relational The world of relational data is based around tuples&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#8733382</link><pubDate>Tue, 15 Jul 2008 17:28:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8733382</guid><dc:creator>Fakher Halim</dc:creator><description>&lt;p&gt;A working example of Table per Hierarchy for Visual Studio 2008 SP1 is available at&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.codeproject.com/KB/architecture/LinqEntityFramework.aspx"&gt;http://www.codeproject.com/KB/architecture/LinqEntityFramework.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#8924236</link><pubDate>Thu, 04 Sep 2008 14:02:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8924236</guid><dc:creator>Hitesh</dc:creator><description>&lt;p&gt;Hi There,&lt;/p&gt;
&lt;p&gt;Good article on explanation of inheritance in entity framework..&lt;/p&gt;
&lt;p&gt;I have a perticular sutuation where by , I have to inherit from a given entity solely for the purpose of adding more calculated fields .. and however DO NOT SAVE the inherited entity to database...&lt;/p&gt;
&lt;p&gt;for .e.g.&lt;/p&gt;
&lt;p&gt;I have an entity &lt;/p&gt;
&lt;p&gt;&amp;quot;Contractor&amp;quot; which contains.. &amp;quot;HourlyRate&amp;quot; and &amp;quot;EstimatedHours&amp;quot;&lt;/p&gt;
&lt;p&gt;and is working fine for saving these two values using entity framework...&lt;/p&gt;
&lt;p&gt;However, I now NEED TO DEFINE an INHERITED entity for reporting purpose.. &lt;/p&gt;
&lt;p&gt;&amp;quot;EstimatedCotractorCost&amp;quot; which will inherit from &amp;quot;Contractor&amp;quot; entity and will have a field &amp;quot;EstimatedCost&amp;quot; which should be &amp;quot;HourlyRate * EstimatedHours&amp;quot; ...and should not be serialised.&lt;/p&gt;
&lt;p&gt;how can i do that? &lt;/p&gt;
&lt;p&gt;Your help would be much appriciated.&lt;/p&gt;
&lt;p&gt;Hitesh.&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#8991789</link><pubDate>Wed, 08 Oct 2008 21:02:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8991789</guid><dc:creator>Ricardo</dc:creator><description>&lt;p&gt;How could I change the type of an object since the condition, ProductType, is not mapped to a property? For instance: I would like to save a RegularProduct as a DiscontinuedProduct. It&amp;#180;s is possible?&lt;/p&gt;
&lt;p&gt;I&amp;#180;d appreciate if someone could answer this question.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ricardo&lt;/p&gt;
</description></item><item><title>New and Notable 149</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#9170275</link><pubDate>Wed, 03 Dec 2008 18:01:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9170275</guid><dc:creator>Sam Gentile's Blog</dc:creator><description>&lt;p&gt;Yup, I'm still stuck in Seattle and I still feel like crap. Tomas just went off to the airport and I feel like the last MVP left in Seattle. Just want to get out of here and home but can't do that until tomorrow night. Lots of stuff stored up Entity Framework/ADO.NET&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#9210725</link><pubDate>Sat, 13 Dec 2008 21:25:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9210725</guid><dc:creator>Greg</dc:creator><description>&lt;p&gt;I'm not finding a full example of how to model Table Per Concrete Type anywhere. I suppose the basic dilemma is how one models the column mappings of the properties in the abstract base type that one defines in the conceptual model, since any given one of those properties will be sourced from multiple tables.&lt;/p&gt;
</description></item><item><title>Links 2009-05-15</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#9618331</link><pubDate>Fri, 15 May 2009 14:09:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9618331</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;SharePoint Create your own customized usage report solution step by step SharePoint WebPart Property&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#9863326</link><pubDate>Mon, 10 Aug 2009 19:19:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9863326</guid><dc:creator>Richard Tang</dc:creator><description>&lt;p&gt;My design is a typical &amp;nbsp;&amp;quot;Table per Concrete Type&amp;quot;. All entity classes are derived from an abstract base entity class. The properties in the base class are mapped to a each individual table.&lt;/p&gt;
&lt;p&gt;The problem I have is that I have to manually edit the .edmx file with an XML editor to implement this. The Entity Data &amp;nbsp;Model Designer can't open this type of .edmx files.&lt;/p&gt;
&lt;p&gt;I tried the EF 4.0 CTP and Visual Studio 2010 beta, it seems to work the same way.&lt;/p&gt;
&lt;p&gt;This is a huge problem to us because we won't be able maintain the data model with a designer and it adds lot of work load.&lt;/p&gt;
&lt;p&gt;Would someone please explain to me why the designer is not supporting this common case? &lt;/p&gt;
&lt;p&gt;Is there any other framework I can use to solve this problem?&lt;/p&gt;
&lt;p&gt;Here is another MSDN thread about this problem:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/038d14e8-fc04-4b06-b1e4-d5b1a950a901"&gt;http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/038d14e8-fc04-4b06-b1e4-d5b1a950a901&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Any help will be appreciated.&lt;/p&gt;
&lt;p&gt;Richard.&lt;/p&gt;
</description></item><item><title>re: Inheritance in the Entity Framework</title><link>http://blogs.msdn.com/adonet/archive/2007/03/15/inheritance-in-the-entity-framework.aspx#9864373</link><pubDate>Tue, 11 Aug 2009 16:37:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9864373</guid><dc:creator>Tim</dc:creator><description>&lt;p&gt;Why isn't there support to have one base-type that all Entities inherit from (EntityBase)? &amp;nbsp;For example, if all my tables have a &amp;quot;ModifiedDate&amp;quot;, why do I need to keep creating the same property over and over in all entity instances when they could just as easily inherit from one common base-type?&lt;/p&gt;
</description></item></channel></rss>