<?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>Update Model – a Question of Identity – Part 2 of 3</title><link>http://blogs.msdn.com/adonet/archive/2008/07/22/update-model-a-question-of-identity-part-2-of-3.aspx</link><description>This article is Part 2 of 3 – please see http://blogs.msdn.com/adonet/archive/2008/07/21/update-model-a-question-of-identity-part-1-of-3.aspx for Part 1. In the last article I explained the principle that the C-side updates would be non-destructive. The</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Update Model – a Question of Identity – Part 2 of 3</title><link>http://blogs.msdn.com/adonet/archive/2008/07/22/update-model-a-question-of-identity-part-2-of-3.aspx#8766163</link><pubDate>Wed, 23 Jul 2008 10:29:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8766163</guid><dc:creator>Frans Bouma</dc:creator><description>&lt;p&gt;I fail to see why you didn't solve this by adding the concept of 'grouping' of entitysets: you can have catalogs, catalogs have schemas, schemas have tables, views. The example you give above therefore doesn't give problems in that case because they're not in the same group, so an entity mapped on catalog1.schema1.customer knows it's not mapped on catalog2.schema4.customer&lt;/p&gt;
&lt;p&gt;Some db's don't have catalogs, just schemas, but you can use a default name for 'catalog', and also if they don't support schemas, a default name for the schema. &lt;/p&gt;
&lt;p&gt;The beauty of this is that you can immediately support multi-catalog projects as well, or multi-schema on oracle. This is how we do it in LLBLGen Pro and it works for oracle, sqlserver etc. and we can migrate a mapping layer just fine (including inheritance) to multiple catalogs being refreshed, simply because the mappings don't use cooked up names, but actually refer to elements in the meta-data which have unique names. &lt;/p&gt;
&lt;p&gt;What I also find a little odd is that no-one at the EF team apparently has found it necessary to add an option to this refresher to make it the choice of the user if the model refresh logic will add new entities or update entities automatically. People who work from the DB want just 1 thing: refresh the catalog, regen the code and recompile their project so they can move on. Ideally in a one-shot way, like pushing a single button or run a single command line tool. &lt;/p&gt;
&lt;p&gt;Because, a developer working on a project isn't interested in doing everything manually, he has a deadline to catch: if a tool can fix things, all the better, and if the tool has to make a choice it can make: pop up a dialog or enlist the tasks to perform (e.g. two tables are renamed, both have the same field layout etc.) &lt;/p&gt;
&lt;p&gt;Unless you get these kind of things solved, the EF designer will never be what it could have been and as the EF is presented to the developer through its designer and usage patterns, it will be a tough battle to sell this to the average developer who doesn't want to waste time clicking in tiny windows to fix errors which could have been solved for him &amp;nbsp;by the tool he uses, and definitely the manager of these developers doesn't want his / her team members to waste time on things like that. &lt;/p&gt;
&lt;p&gt;But of course, your council of 5 clever people will have told you all about these kind of things by now, I'm sure ;). &lt;/p&gt;
</description></item><item><title>re: Update Model – a Question of Identity – Part 2 of 3</title><link>http://blogs.msdn.com/adonet/archive/2008/07/22/update-model-a-question-of-identity-part-2-of-3.aspx#8789599</link><pubDate>Tue, 29 Jul 2008 21:29:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8789599</guid><dc:creator>VB</dc:creator><description>&lt;p&gt;When I select &amp;quot;Update Model from DB&amp;quot; it shows me the pop up windows with &amp;quot;Add&amp;quot; and &amp;quot;Update&amp;quot; tables, views, SP option. When I select &amp;quot;Update&amp;quot; it throws an message:&lt;/p&gt;
&lt;p&gt;&amp;quot;You cannot select or deselect.....&amp;quot;&lt;/p&gt;
&lt;p&gt;Hence I end up with all my DB tables again in my EDMX. If I want to update and get only 1/2 DBtables I still end up getting all tables again.&lt;/p&gt;
&lt;p&gt;Is there any way out?????&lt;/p&gt;
</description></item><item><title>re: Update Model – a Question of Identity – Part 2 of 3</title><link>http://blogs.msdn.com/adonet/archive/2008/07/22/update-model-a-question-of-identity-part-2-of-3.aspx#8794068</link><pubDate>Thu, 31 Jul 2008 21:15:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8794068</guid><dc:creator>JB</dc:creator><description>&lt;p&gt;I'd just like to say thanks for the EF. I know the concept has been around for awhile, but it's nice to finally not have to use custom tools, etc.&lt;/p&gt;
&lt;p&gt;I'd also like to point out that company's that want to compete, as well as developers that don't want to be left behind on scalable technologies would see a great benefit in having these collabrative tools. And don't share the same opinion as the board troll Frans Bouma.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
</description></item><item><title>re: Update Model – a Question of Identity – Part 2 of 3</title><link>http://blogs.msdn.com/adonet/archive/2008/07/22/update-model-a-question-of-identity-part-2-of-3.aspx#8805293</link><pubDate>Sat, 02 Aug 2008 12:22:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8805293</guid><dc:creator>Kosher</dc:creator><description>&lt;p&gt;The column and table identity issues were resolved with datasets in the past by using annotated columns and tables. &amp;nbsp;But I'm sure you knew that. &amp;nbsp;I like the naming (1,2,3) etc... if the name exists. &amp;nbsp;Go with it =)&lt;/p&gt;
&lt;p&gt;I hope these &amp;quot;entities&amp;quot; are modeled in the designer like datasets but with the added benefit that each &amp;quot;entity&amp;quot; is stored in a separate class file. &amp;nbsp;I'm not sure if this is totally related to your issue with identities but it could provide a way to use partial classes to add a feature where two tables with colliding names are combined with partial classes. &amp;nbsp;That old concept of a master schema for relating entities across catalogs, ya know? &amp;nbsp;Either that or you simply allow the user to specify an &amp;quot;intermediate&amp;quot; class name that pulls the schema from both tables and allows the users to specify which table has &amp;quot;master&amp;quot; status. &amp;nbsp;Of course in this intermediate table, the users might also need to annotate columns to resolve name collisions.&lt;/p&gt;
&lt;p&gt;The DataTableAdapter is what this &amp;quot;Update Model&amp;quot; feature sounds like to me. &amp;nbsp;When the underlying database model changed in the past, I would run through the wizard and choose the tables/columns that I wanted to append. &amp;nbsp;That shouldn't change much.&lt;/p&gt;
&lt;p&gt;I am new to this whole &amp;quot;Entity Framework&amp;quot; stuff. &amp;nbsp;I am interested in how it addresses serialization? &amp;nbsp;The old days of passing a datatable (entity) schema (with data) over a web service and then having the ability to consume the web service with visual studio's nice web service wizard made life good.&lt;/p&gt;
</description></item><item><title>re: Update Model – a Question of Identity – Part 2 of 3</title><link>http://blogs.msdn.com/adonet/archive/2008/07/22/update-model-a-question-of-identity-part-2-of-3.aspx#8869593</link><pubDate>Fri, 15 Aug 2008 16:09:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8869593</guid><dc:creator>Mathias</dc:creator><description>&lt;p&gt;@JB, dont think that everybody is a board troll if he doesnt pray for EF...&lt;/p&gt;
&lt;p&gt;i also have to use EF and searching for answers to simple questions... and at this time i'm reaching the first limitations to implement all given pattern by our architect.&lt;/p&gt;
&lt;p&gt;and we trying to use the EF domain driven, and not by a existing database...&lt;/p&gt;
&lt;p&gt;but it seems to fail...&lt;/p&gt;
</description></item><item><title>re: Update Model – a Question of Identity – Part 2 of 3</title><link>http://blogs.msdn.com/adonet/archive/2008/07/22/update-model-a-question-of-identity-part-2-of-3.aspx#8917481</link><pubDate>Mon, 01 Sep 2008 22:32:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8917481</guid><dc:creator>Günter Zöchbauer</dc:creator><description>&lt;p&gt;IMHO it's mandatory to let the developer decide if the C-Side should be modified - even before the smallest change you can think of.&lt;/p&gt;
&lt;p&gt;It's horrible to correct or remove all automatically made additions manually after each update.&lt;/p&gt;
&lt;p&gt;Anyway, I don't understand why MS didn't ship a designer optimized for forward engineering before playing with reverse engineering.&lt;/p&gt;
&lt;p&gt;This would be stupid simple to develop and would do the job for a vast majority of developers.&lt;/p&gt;
&lt;p&gt;Reverse engineering is fine, but if it doesn't work fluently it's better to not use it at all or maybe just for a first import before customizing the C-Side.&lt;/p&gt;
&lt;p&gt;The missing designer for the S-Side is a burden as well.&lt;/p&gt;
&lt;p&gt;If I don't want to use update schema from DB due to it's destructiveness (yes, destructiveness, even if it doesn't remove anything but adding) the S-Side has to be maintained by hand.&lt;/p&gt;
&lt;p&gt;But the EDMX-Syntax is so verbose that it's a hard to maintain using the XML-editor.&lt;/p&gt;
&lt;p&gt;My conclusion:&lt;/p&gt;
&lt;p&gt;The designer is absolutely useless as it is currently and maintenance of the EDMX by hand is a pain (not at least due to the combination of C-Side, S-Side and CSM in one file).&lt;/p&gt;
&lt;p&gt;So, another one or two year waiting for a possibly usable ORM from MS.&lt;/p&gt;
</description></item><item><title>re: Update Model – a Question of Identity – Part 2 of 3</title><link>http://blogs.msdn.com/adonet/archive/2008/07/22/update-model-a-question-of-identity-part-2-of-3.aspx#9195795</link><pubDate>Thu, 11 Dec 2008 11:52:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9195795</guid><dc:creator>Fred Morrison</dc:creator><description>&lt;p&gt;Did you ever publish Part 3 of 3? Please post a link with either the article or the reason the last part has not yet been published.&lt;/p&gt;
</description></item></channel></rss>