<?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>Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx</link><description>When VS 2010 ships it will include some significant improvements to our code generation story for the Entity Framework. The basic idea is to make use of T4 templates for code generation and ship strong integration into the Entity Framework Designer to</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>infoblog &amp;raquo; Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9370933</link><pubDate>Fri, 23 Jan 2009 00:46:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9370933</guid><dc:creator>infoblog &amp;raquo; Customizing Entity Classes in VS 2010</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blog.a-foton.ru/index.php/2009/01/22/customizing-entity-classes-in-vs-2010/"&gt;http://blog.a-foton.ru/index.php/2009/01/22/customizing-entity-classes-in-vs-2010/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9371933</link><pubDate>Fri, 23 Jan 2009 05:24:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9371933</guid><dc:creator>DotNetShoutout</dc:creator><description>&lt;p&gt;Thank you for submitting this cool story - Trackback from DotNetShoutout&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9372004</link><pubDate>Fri, 23 Jan 2009 06:08:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9372004</guid><dc:creator>Kristofer</dc:creator><description>&lt;p&gt;Neat, this will be a killer feature.&lt;/p&gt;
&lt;p&gt;Some [minor] UI suggestions:&lt;/p&gt;
&lt;p&gt;1) &amp;quot;Add New Artifact Generation Item&amp;quot; does not make it totally obvious what the menu option does. &amp;quot;Customize code generation&amp;quot; perhaps?&lt;/p&gt;
&lt;p&gt;2) Give the .tt template the same name as the .edmx file it belongs to; this makes it more obvious what it is for when used in a large and cluttered project.&lt;/p&gt;
&lt;p&gt;3) Show the .tt template as a sub-item to the .edmx file in the project hierarchy. (i.e. set &amp;quot;DependentUpon&amp;quot; in the .csproj/.vbproj file)&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9372098</link><pubDate>Fri, 23 Jan 2009 07:33:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9372098</guid><dc:creator>Kristofer</dc:creator><description>&lt;p&gt;...and one more thing... (I know I said it before, but I think it is worth repeating :) &amp;nbsp; )&lt;/p&gt;
&lt;p&gt;To make the &amp;quot;Influence generated classes based on structural annotations in CSDL&amp;quot; scenario you mentioned possible and more compelling/easier to use in real world scenarios, either:&lt;/p&gt;
&lt;p&gt;a) allow structural annotation XSDs to be &amp;quot;plugged in&amp;quot; to the designer so that any additional properties can be accessed (viewed and edited) using the property editor.&lt;/p&gt;
&lt;p&gt;...and/or...&lt;/p&gt;
&lt;p&gt;b) add some other kind of extensibility interface to make it possible to view/edit structural annotations directly in the designer.&lt;/p&gt;
&lt;p&gt;Mockup screenshot showing an example of how that kind of designer extensibility could be used:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blog.huagati.com/res/wp-content/uploads/2009/01/efDesignerSAMockup.png"&gt;http://blog.huagati.com/res/wp-content/uploads/2009/01/efDesignerSAMockup.png&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9372224</link><pubDate>Fri, 23 Jan 2009 09:24:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9372224</guid><dc:creator>Sanjay Nagamangalam - MSFT</dc:creator><description>&lt;p&gt;@Kristofer: yep, we considered the options you suggested among several others.&lt;/p&gt;
&lt;p&gt;1) &amp;quot;Add New Artifact Generation Item&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; Our design lets users surface custom VS item templates in the &amp;quot;Add New Item&amp;quot; dialog that we launch from the designer as long as they conform to our naming prefix convention. They may or may not have .tt files and may indeed have nothing to do with code generation at all. &lt;/p&gt;
&lt;p&gt;2) Give the .tt template the same name as the .edmx file it belongs to&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; Yep, we looked at this and if possible, we might pre-populate a file name when we launch the &amp;quot;Add New Item&amp;quot; dialog from the designer. Users will more than likely want to change the file name so we want to leverage familiar VS paradigms here.&lt;/p&gt;
&lt;p&gt;3) Show the .tt template as a sub-item to the .edmx file in the project hierarchy.&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; We had lots of discussions around this. In the end, we felt the ideal user experience was to let the VS item template do what it does by default and not force it to put its files someplace we want.&lt;/p&gt;
&lt;p&gt;Our design allows users to create VS item templates that may have multiple .tt files (and/or other files) that may process the same or different EDMX file. In such scenarios, users may find it awkward if we forcibly put all files added by the item template as dependent files of the EDMX. We also felt that &amp;quot;grand-children&amp;quot; files in Solution Explorer look a bit strange and may have undesired Source Control consequences (e.g. checking out the EDMX file will also check out the child .tt file, etc).&lt;/p&gt;
&lt;p&gt;More advanced customizations could include a custom wizard in the VS item template which could put files anywhere in the project hierarchy.&lt;/p&gt;
&lt;p&gt;Hope this helps answer your questions.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sanjay&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9372237</link><pubDate>Fri, 23 Jan 2009 09:33:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9372237</guid><dc:creator>Kristofer</dc:creator><description>&lt;p&gt;@Sanjay,&lt;/p&gt;
&lt;p&gt;Thx for the clarification.&lt;/p&gt;
&lt;p&gt;Re. #1: what I meant was that &amp;quot;artifact generation item&amp;quot; menu name is language that may be crystal clear to the designer of the feature but a first time user will have no clue what it means. And it does not translate very well (to localized versions of VS).&lt;/p&gt;
&lt;p&gt;#3: Maybe you could solve it with a setting somewhere (e.g. Tools/Options/EDM Designer/...) to control this behavior..?&lt;/p&gt;
&lt;p&gt;Personally I would like to see the templates that belong to a certain EDMX listed together with it rather than elsewhere in the project hierarchy so if this behavior can be customized that would allow both behaviors.&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9372594</link><pubDate>Fri, 23 Jan 2009 16:04:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9372594</guid><dc:creator>Craig Stuntz</dc:creator><description>&lt;p&gt;I was going to write some comments, but Kristofer already said everything I was going to write. Saw to say that I agree with him, especially the part about how this looks like a really, really nice feature.&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9372769</link><pubDate>Fri, 23 Jan 2009 18:37:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9372769</guid><dc:creator>JasonBSteele</dc:creator><description>&lt;p&gt;Will the next designer be able to view subsets of the EDMX, or multiple EDMX's be partial classes of each other?&lt;/p&gt;
&lt;p&gt;For any significantly sized project there are too many entities for one designer page.&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Jason&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9374379</link><pubDate>Sun, 25 Jan 2009 01:40:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9374379</guid><dc:creator>Sanjay Nagamangalam - MSFT</dc:creator><description>&lt;p&gt;@Kristofer: Thanks for your feedback. &lt;/p&gt;
&lt;p&gt;RE: #1: &amp;quot;artifact generation item&amp;quot; menu&lt;/p&gt;
&lt;p&gt;We've restarted the discussion in the team and will try &amp;amp; come up with a better menu name that is more intuitive to first time users.&lt;/p&gt;
&lt;p&gt;RE: #2: A &amp;quot;Tools...Options&amp;quot; setting to specify if the files added by the VS item template should be child files of the EDMX seems like a reasonable proposal. However, adding arbitrary files as child files of the EDMX file may not work in all scenarios. Some examples that come to mind are ASP.NET website projects and custom 3rd party VS item templates that add multiple .tt files and/or other files (e.g. code snippets, XAML files, etc) that are in fact not dependent on the EDMX file. Our current design lets 3rd party VS item template &amp;amp; wizard authors do the right thing instead of forcibly making their files dependent files of the EDMX. We’ll certainly look for user feedback and review the design.&lt;/p&gt;
&lt;p&gt;@Jason:&lt;/p&gt;
&lt;p&gt;While we understand your scenario, it does not look like the next version of the designer will support viewing subsets of the EDMX at the moment. Can you explain a bit more by what you mean by “multiple EDMX's be partial classes of each other?”. Feel free to send me e-mail at: sanagama –at– microsoft –dot– com&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sanjay&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9375723</link><pubDate>Mon, 26 Jan 2009 10:54:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375723</guid><dc:creator>Menny</dc:creator><description>&lt;p&gt;I don’t get it&lt;/p&gt;
&lt;p&gt;You are doing great work here, but I don’t get it.&lt;/p&gt;
&lt;p&gt;Diving into the EDMX file or the T4 template is not something I’m eager to do, these files are not user friendly at all, and I know some of you second guess me here. &lt;/p&gt;
&lt;p&gt;I wish there would be more designer support instead of text support for something simple as breaking the designer into files, or setting the ObjectContext to be internal. Adding an attribute or an interface require more so the T4 seems to be the right way although I can think of other way’s doing it in the CSDL portion.&lt;/p&gt;
&lt;p&gt;I don’t get it because I’m catching the drift that you are targeting small to medium project and not enterprise one. &lt;/p&gt;
&lt;p&gt;Since the store procedure support still seems far far away. Things like mapping multiple result sets of sp’s with output params still looks like they’re farfetched. Where scenarios like result set + paging data are very common…&lt;/p&gt;
&lt;p&gt;Looking at &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/efdesign/archive/2008/07/18/using-stored-procedures-to-get-load-structured-data.aspx"&gt;http://blogs.msdn.com/efdesign/archive/2008/07/18/using-stored-procedures-to-get-load-structured-data.aspx&lt;/a&gt; does not enlighten things at all&lt;/p&gt;
&lt;p&gt;Most of the DBA’s I have talked with looks at the EF as a “break point” between the interface they supply (sp’s) and what EF aims for.&lt;/p&gt;
&lt;p&gt;Sorry for my pessimistic &amp;nbsp;approach here, still these are my two cents on the subject &lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9375727</link><pubDate>Mon, 26 Jan 2009 11:08:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375727</guid><dc:creator>Kristofer</dc:creator><description>&lt;p&gt;@Menny,&lt;/p&gt;
&lt;p&gt;I think what MSFT is aiming for here is a flexible enough toolset that allow anyone to customize whatever may need customization. On top of that I am sure there will be loads of third party or community built templates and toolkits that add the extra 'bits and pieces' so that not every end-user have to edit their own T4 templates.&lt;/p&gt;
&lt;p&gt;In short, this is the foundation and template libraries, customization dialogs, add-ins etc goes on top of that. Either as something provided by MSFT, third-parties, or community/open source things on codeplex.&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9375981</link><pubDate>Mon, 26 Jan 2009 18:25:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9375981</guid><dc:creator>Menny</dc:creator><description>&lt;p&gt;I'm sure it is the foundation but i still think that common tasks like i mentioned should not be integrated via template (T4) editing)&lt;/p&gt;
</description></item><item><title>Tip 3 - Getting started with T4</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9455655</link><pubDate>Tue, 03 Mar 2009 05:03:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9455655</guid><dc:creator>Meta-Me</dc:creator><description>&lt;p&gt;So if you've been reading the Entity Framework Design Blog you will have heard us talk about T4 . It&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9471593</link><pubDate>Thu, 12 Mar 2009 14:31:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9471593</guid><dc:creator>Anantharaman</dc:creator><description>&lt;p&gt;Will EF 2.0 support the concept of populating an EntitySet from an Insert / Update / Delete Function ?&lt;/p&gt;
&lt;p&gt;E.g. To support the scenario where an Insert Stored Procedure does an insert into a table followed by Select &amp;lt;fields&amp;gt; from table , which returns multiple rows. ( kind of piggy backing select statement on Insert SP Call ) . Therefore the Insert Function can have a return type as Collection(EntityType).&lt;/p&gt;
&lt;p&gt;The idea is to avoid making another call to database just to fetch the latest property values for entities.&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9471648</link><pubDate>Thu, 12 Mar 2009 15:38:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9471648</guid><dc:creator>danieldsmith</dc:creator><description>&lt;p&gt;I'm with Kristofer - I'd definitely rather see the associated .tt files grouped as child items under the .edmx file. &amp;nbsp;It's much cleaner and less cluttered that way.&lt;/p&gt;
&lt;p&gt;In response to Sanjay's comments on this:&lt;/p&gt;
&lt;p&gt;I don't think .tt templates as child items would look strange at all. &amp;nbsp;In fact it's what I'd *expect* to see.&lt;/p&gt;
&lt;p&gt;Regarding source control checking out the child items being undesired - I completely disagree. &amp;nbsp;I *want* the child items to also be forcibly checked out. &amp;nbsp;I don't want my build breaking or wrong code being generated if the templates are missing!&lt;/p&gt;
</description></item><item><title>Self-Tracking Entities in the Entity Framework</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9503129</link><pubDate>Tue, 24 Mar 2009 04:51:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9503129</guid><dc:creator>Entity Framework Design</dc:creator><description>&lt;p&gt;Background One of the biggest pieces of feedback we received from the N-Tier Improvements for Entity&lt;/p&gt;
</description></item><item><title>Self-Tracking Entities</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9503166</link><pubDate>Tue, 24 Mar 2009 05:09:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9503166</guid><dc:creator>Meta-Me</dc:creator><description>&lt;p&gt;Lots of the feedback we got on the EF design blog about our early N-Tier plans , highlighted that lots&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9591529</link><pubDate>Wed, 06 May 2009 19:19:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9591529</guid><dc:creator>DZ Zweigle</dc:creator><description>&lt;p&gt;Being a noob and wishing to know more--Can you point me sites, blogs, books, examples for me to learn, use and prepare for VS2010.&lt;/p&gt;
&lt;p&gt;Any help is appreciated.&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9591550</link><pubDate>Wed, 06 May 2009 19:31:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9591550</guid><dc:creator>Daniel Simmons</dc:creator><description>&lt;p&gt;@DZ Zweigle,&lt;/p&gt;
&lt;p&gt;One of the best resources around for learning about T4 is the blog of Oleg Sych. &amp;nbsp;Try this out: &lt;a rel="nofollow" target="_new" href="http://www.olegsych.com/tag/t4/"&gt;http://www.olegsych.com/tag/t4/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;- Danny&lt;/p&gt;
</description></item><item><title>New EntityFramework</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9640543</link><pubDate>Mon, 25 May 2009 18:22:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9640543</guid><dc:creator>こだかたろうです</dc:creator><description>&lt;p&gt;このところ、書籍の執筆とWindows7でなかなか手に付かなかったのですが、実は次期Visual StudioのBetaがリリースされてます。 Visual Studio 2010 and .NET Framework&lt;/p&gt;
</description></item><item><title>Tip 3 - How to get started with T4</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9796003</link><pubDate>Sun, 21 Jun 2009 21:36:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9796003</guid><dc:creator>VS2010学习</dc:creator><description>&lt;p&gt;So if you&amp;amp;#39;ve been reading the Entity Framework Design Blog you will have heard us talk about T4&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9882509</link><pubDate>Mon, 24 Aug 2009 12:40:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9882509</guid><dc:creator>hello</dc:creator><description>&lt;p&gt;hello world in new world ya world ya world&lt;/p&gt;
</description></item><item><title>re: Customizing Entity Classes in VS 2010</title><link>http://blogs.msdn.com/efdesign/archive/2009/01/22/customizing-entity-classes-with-t4.aspx#9882512</link><pubDate>Mon, 24 Aug 2009 12:42:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9882512</guid><dc:creator>bio</dc:creator><description>&lt;p&gt;i think entity frame work is good data access but the csla frame work is perfiect to developer to work by it.&lt;/p&gt;
</description></item></channel></rss>