Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: Table Per Type inheritance makes one entity in designer - VS2013 EF6

$
0
0
@maziarkaradoslaw - When reverse engineering database EF Designer builds the simplest possible model where each table is mapped to a single entity with the exception of the join table of a many-to-many relationship where the join table is turned into an association type in the conceptual model. After the initial model is built it is possible to tweak the model to implement TPT mapping strategy. As far as I know the out-of-the box designer in VS2010 had the same behavior however there was the Entity Designer Database Generation Power Pack that allowed generating database using TPT mapping strategy so I wonder if the database in the original project was built that way. Having said that, unless you changed the database and need to regenerate the model you should be able to use the edmx file from VS2010 in VS2013. Since your edmx file is probably v2 when you add it to a project using EF6 (or targeting .NET Framework 4.5) the designer will want to update it to v3, so you want to make a copy for VS2013 if you need to keep your VS2010 project running.

Viewing all articles
Browse latest Browse all 1793


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>