<?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>A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx</link><description>Unlike Linq To Sql, Entity Framework directly supports Many to Many relationships.&amp;#160; I’ll first describe what this support means. In the Northwind sample database, you have Employees, Territories and EmployeeTerritories tables.&amp;#160; EmployeeTerritories</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9017714</link><pubDate>Mon, 27 Oct 2008 10:58:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9017714</guid><dc:creator>Shail</dc:creator><description>&lt;p&gt;Hello David,&lt;/p&gt;
&lt;p&gt;This is really helpful. I was looking for it and you can at right time. Thanks&lt;/p&gt;
&lt;p&gt;Any Idea, that this will be supported in LINQ to SQL sometime ?&lt;/p&gt;
&lt;p&gt;Shail&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9017736</link><pubDate>Mon, 27 Oct 2008 11:16:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9017736</guid><dc:creator>Tom Pester</dc:creator><description>&lt;p&gt;Thanks for making Dynamic Data more complete David !&lt;/p&gt;
&lt;p&gt;I think this is one of the 3 missing features that were missing in V1&lt;/p&gt;
&lt;p&gt;1. Not able to reorder columns (in detail &amp;amp; list view)&lt;/p&gt;
&lt;p&gt;2. No support for many to many relations&lt;/p&gt;
&lt;p&gt;3. No support for creating a lookup inline. Eg. If I create a Product and I have to specify a Category for it that doesn't exist yet I have to abort the Product creation, go and create a Category and start creating a Product again.&lt;/p&gt;
&lt;p&gt;This is a usability problem that can be adressed by creating the Category on the same page the user creates the Product. So the Category is effectivly created &amp;quot;inline&amp;quot;&lt;/p&gt;
&lt;p&gt;I know point 1 is going to get introduced in V2 and I hope you will consider point 3 as well!&lt;/p&gt;
&lt;p&gt;This would cover almost 90% of the requirments I typicaly have and I would recommend it wholeheartedly &amp;nbsp;to my team.&lt;/p&gt;
&lt;p&gt;I have some feedback on the Many to Many support &amp;nbsp;:&lt;/p&gt;
&lt;p&gt;- The list can get pretty long so I would wrap it inside a div and give it a css property of &amp;quot;overflow:scroll&amp;quot; so that the user the vertical height can be controlled;&lt;/p&gt;
&lt;p&gt;- Give the developer the option to split the checkboxes in x columns &lt;/p&gt;
&lt;p&gt;- Give the developer the option order left to right or top to bottom&lt;/p&gt;
&lt;p&gt;Also, Is there a book on Dynamic Data in the pipeline that you know of?&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9017752</link><pubDate>Mon, 27 Oct 2008 11:27:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9017752</guid><dc:creator>Buckley</dc:creator><description>&lt;p&gt;Is this template evailable in the latest codeplex release?&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9018840</link><pubDate>Mon, 27 Oct 2008 22:18:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9018840</guid><dc:creator>davidebb</dc:creator><description>&lt;p&gt;Shail, I'm not aware of plans to add Many To Many support to Linq To Sql. &amp;nbsp;Geneally, Linq To Sql is a simpler/lighter technology, which does not have the same power of abstraction as Entity Framework.&lt;/p&gt;
&lt;p&gt;Of course, theoretically it may be possible to make this work in Dynamic Data by directly dealing with the 'Junction' table in the field template, though that might be non-trivial.&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9018852</link><pubDate>Mon, 27 Oct 2008 22:25:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9018852</guid><dc:creator>davidebb</dc:creator><description>&lt;p&gt;Tom, thanks for all the feedback. &amp;nbsp;Note that all the styling related changes you bring up (overflow scroll, # of columns, left to right) are things that can be done simply by changing ManyToMany_Edit.ascx (which has the CheckBoxList). &amp;nbsp;Though of course, if the goal is to use different settings for different fields in the same app, it might make sense to create a metadata attribute that would pass that information in from the model to the field template.&lt;/p&gt;
&lt;p&gt;For your other points that don't directly relate to Many To Many, I would prefer to start a new discussion on the Dynamic Data forum, in order to keep this post focused on just Many To Many :) &amp;nbsp;Thanks!&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9018855</link><pubDate>Mon, 27 Oct 2008 22:29:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9018855</guid><dc:creator>davidebb</dc:creator><description>&lt;p&gt;Buckley, right now it is only available here, but it should make its way on to Codeplex at some point (and eventually in our next release).&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9018916</link><pubDate>Mon, 27 Oct 2008 22:58:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9018916</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;&amp;quot;I'm not aware of plans to add Many To Many support to Linq To Sql&amp;quot;&lt;/p&gt;
&lt;p&gt;That was definitely announced way back, just as support for other providers.&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9019003</link><pubDate>Mon, 27 Oct 2008 23:33:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9019003</guid><dc:creator>davidebb</dc:creator><description>&lt;p&gt;Mike, you may very well be right, as I don't work in the Linq To Sql team (I'm in the ASP.NET/Dynamic Data team), and I'm aware of everything they are doing. &amp;nbsp;It might be worth asking on the Linq To Sql forum (&lt;a rel="nofollow" target="_new" href="http://forums.microsoft.com/msdn/ShowForum.aspx?siteid=1&amp;amp;ForumID=123"&gt;http://forums.microsoft.com/msdn/ShowForum.aspx?siteid=1&amp;amp;ForumID=123&lt;/a&gt;) to reach the 'experts' in that area.&lt;/p&gt;
&lt;p&gt;From a Dynamic Data point of view, if Linq To Sql adds this support we can support it accordingly in the field template.&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9028719</link><pubDate>Sun, 02 Nov 2008 03:48:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9028719</guid><dc:creator>Dave Townsend</dc:creator><description>&lt;p&gt;Great Post! Thank you. Anyone attended the PDC last week?&lt;/p&gt;
</description></item><item><title>PDC ASP.NET Content Available Now</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9034390</link><pubDate>Mon, 03 Nov 2008 21:39:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9034390</guid><dc:creator>Scott Hunter</dc:creator><description>&lt;p&gt;Just got back from PDC 2008 last week, we showed all kinds of cool new stuff. Here is a list of links&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9058741</link><pubDate>Tue, 11 Nov 2008 00:30:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9058741</guid><dc:creator>ryan martin</dc:creator><description>&lt;p&gt;I spent 10 hours, literally trying to get this to work with my SQL Server 2008 database. I downloaded this Many To Many example and it worked perfectly fine, except I couldn’t get mine to work the same. My application wouldn't update it would just stick so I combed through all of the code in both apps to find the difference. &lt;/p&gt;
&lt;p&gt;Well I'm embarrassed to admit I did not make the linking table (EmployeesTerritories) two ID fields (EmployeeID, TerritoryID) as primary keys and foreign keys respectfully. I tried to do this relationship connection through the entity model instead. So if anyone is having a similar issue, try this out! Build the relationships in your database first.&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9172915</link><pubDate>Thu, 04 Dec 2008 04:51:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9172915</guid><dc:creator>Quitnen Miller</dc:creator><description>&lt;p&gt;Thank you for the great post on how to deal with Many-To-Many relationships. Unfortunately it doesn't work in its current form on the project I'm working on because the joining table contains some data about the relationship. &lt;/p&gt;
&lt;p&gt;I am looking into explicititly defining the relationship as opposed to implicity having it defined. &lt;/p&gt;
&lt;p&gt;I do have one question regarding the AutoFieldGenerator. Specifically the following lines.&lt;/p&gt;
&lt;p&gt;string uiHint = null;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (column.Provider.Association != null &amp;amp;&amp;amp; column.Provider.Association.Direction == AssociationDirection.ManyToMany) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;uiHint = &amp;quot;ManyToMany&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fields.Add(new DynamicField() { DataField = column.Name, UIHint=uiHint });&lt;/p&gt;
&lt;p&gt;I noticed that the UIHint is set to either null or ManyToMany yet it still seems to pick up UIHints defined in a MetadataType Class. &lt;/p&gt;
&lt;p&gt;[UIHint(&amp;quot;Image&amp;quot;)]&lt;/p&gt;
&lt;p&gt;public object Logo{ get; set; }&lt;/p&gt;
&lt;p&gt;Is that because the UIHint from the MetadataType is applied after the AutoFieldGenerator. If that is the case, any UIHint's for the FK field will remove the ManyToMany that is applied in the &amp;nbsp;AutoFieldGenerator. &lt;/p&gt;
&lt;p&gt;I thought I should have used something like the following but found it made no difference: &lt;/p&gt;
&lt;p&gt;UIHint = uiHint != null ? uiHint : column.UIHint&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Q&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9172936</link><pubDate>Thu, 04 Dec 2008 04:57:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9172936</guid><dc:creator>davidebb</dc:creator><description>&lt;p&gt;Q,&lt;/p&gt;
&lt;p&gt;This works because if DynamicField has a null UIHint, then it always defaults to the one from the MetaColumn. &amp;nbsp;Basically, what you set on the DynamicField overrides the MetaColumn uihint.&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9231542</link><pubDate>Wed, 17 Dec 2008 23:15:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9231542</guid><dc:creator>J Stroud</dc:creator><description>&lt;p&gt;I'm getting a 'Repeater1 not found' type error in ManyToMany.aspx.cs when I include this in my own project...I've made the necessary mods to ensure it's in the proper namespace and everything.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9231992</link><pubDate>Thu, 18 Dec 2008 01:15:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9231992</guid><dc:creator>davidebb</dc:creator><description>&lt;p&gt;J Stroud: the field templates were written for a web site. &amp;nbsp;To use them in a Web Application, right click the aspx files in VS and choose 'convert to web application'. &amp;nbsp;You should then be ok.&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9236325</link><pubDate>Thu, 18 Dec 2008 18:12:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9236325</guid><dc:creator>J Stroud</dc:creator><description>&lt;p&gt;Thanks! Still muddling about with 2008.&lt;/p&gt;
</description></item><item><title>ASP.NET 4.0 and Visual Studio 2010 Enhancements</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9242100</link><pubDate>Fri, 19 Dec 2008 16:54:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9242100</guid><dc:creator>Craig Shoemaker</dc:creator><description>&lt;p&gt;Scott Hunter brings a summary of the new features coming in ASP.NET 4.0 and Visual Studio 2010. Learn&lt;/p&gt;
</description></item><item><title>ASP.NET 4.0 and Visual Studio 2010 Enhancements</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9242131</link><pubDate>Fri, 19 Dec 2008 17:11:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9242131</guid><dc:creator>Craig Shoemaker</dc:creator><description>&lt;p&gt;Scott Hunter brings a summary of the new features coming in ASP.NET 4.0 and Visual Studio 2010. Learn&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9243968</link><pubDate>Sat, 20 Dec 2008 16:23:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9243968</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Does this control work for Dynamic Data LinqToSQL apps ? If not would it be possible to ?&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9247722</link><pubDate>Mon, 22 Dec 2008 21:49:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9247722</guid><dc:creator>davidebb</dc:creator><description>&lt;p&gt;Michael, copying from a recent forum thread: &amp;quot;I think in theory it can be made to work with Linq to SQL, but it would certainly be harder. &amp;nbsp;The reason is that with L2S, the framework doesn't abstract out the 'junction table', so the field templates would need to do all the book keeping themselves to make it all work. &amp;nbsp;But in theory, I don't see why it couldn't be made to work with the right field template.&amp;quot;&lt;/p&gt;
</description></item><item><title>Two worlds of Dynamic Data customization: generic vs schema specific</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9248726</link><pubDate>Tue, 23 Dec 2008 02:44:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9248726</guid><dc:creator>David Ebbo's blog</dc:creator><description>&lt;p&gt;There are many ways to customize a ASP.NET Dynamic Data site, which can sometimes be a bit overwhelming&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9285837</link><pubDate>Tue, 06 Jan 2009 20:31:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9285837</guid><dc:creator>philip</dc:creator><description>&lt;p&gt;I tried your code, works very nice, thanks. Though, ManyToMany_Edit.ascx isn't loaded/executed when in 'Insert' mode.&lt;/p&gt;
&lt;p&gt;When I set a breakpoint in 'Page_Load' of ManyToMany_Edit, it doesn't even get there.&lt;/p&gt;
&lt;p&gt;Any ideas?!&lt;/p&gt;
&lt;p&gt;philip&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9285925</link><pubDate>Tue, 06 Jan 2009 21:31:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9285925</guid><dc:creator>davidebb</dc:creator><description>&lt;p&gt;Philip, what exactly are you trying? &amp;nbsp;In the sample I shared, if I:&lt;/p&gt;
&lt;p&gt;- Go to Territories/ListDetails.aspx&lt;/p&gt;
&lt;p&gt;- Click New on the DetailView&lt;/p&gt;
&lt;p&gt;The insert UI correctky uses the Many To Many field template to pick employee.&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9296103</link><pubDate>Thu, 08 Jan 2009 13:18:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9296103</guid><dc:creator>Jan Ehlers</dc:creator><description>&lt;p&gt;I have implemented this field on a web-application, and it works. It does however result in a lot of roundtrips to the database. It seems that for every foreignkey column in every row on the main table a call to the database is made to extract the related records. This means that a page with 10 records shown and 3 many to many columns makes 30 extra calls to the database. The call is made every time a RelatedEnd entityCollection is loaded. On the listDetails page you do load foreignkeycolumns explicitly, so why is it necessary to do this row by row loading of related entities?&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9299709</link><pubDate>Thu, 08 Jan 2009 22:24:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9299709</guid><dc:creator>davidebb</dc:creator><description>&lt;p&gt;Jan, this happens because by default we only Include the entity ref columns in the query, and not the entity sets. &amp;nbsp;See this line in list.aspx.cs:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;GridDataSource.Include = table.ForeignKeyColumnsNames;&lt;/p&gt;
&lt;p&gt;If you were to add the ManyToMany column in that list, you should get all the data in one query. &amp;nbsp;e.g. in the Territories case, with the current code the Include only gets set to &amp;quot;Region&amp;quot;. &amp;nbsp;Instead, you'd want to set it to &amp;quot;Region,Employees&amp;quot;.&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9301642</link><pubDate>Fri, 09 Jan 2009 12:22:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9301642</guid><dc:creator>Jan Ehlers</dc:creator><description>&lt;p&gt;Hi David&lt;/p&gt;
&lt;p&gt;Thank you for the quick response. It did the trick when I put this check on the related end:&lt;/p&gt;
&lt;p&gt; if (!entityCollection.IsLoaded)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;entityCollection.Load();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;It does however require that I use a custom page in order to hardcode the table names that needs to be included in the GridDataSource query. I already have this, so that is ok. For later usage however I would like to know if you know a general way to get the names of the navigation properties on the main entity to be able to include the entitities behind them. If there is such I way, I suggest this as the default behavior for the ListDetails page.&lt;/p&gt;
&lt;p&gt;Regards, Jan&lt;/p&gt;
</description></item><item><title>re: A ‘Many To Many’ field template for Dynamic Data</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9303164</link><pubDate>Sat, 10 Jan 2009 04:22:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9303164</guid><dc:creator>davidebb</dc:creator><description>&lt;p&gt;Jan, you should be able to do this by looking at table.Columns.OfType&amp;lt;MetaChildrenColumn&amp;gt;(), and add them to the include. &amp;nbsp;Obviously, this needs to be done carefully, as it will cause one big query to happen. &amp;nbsp;It's good if the data ends up being used, and bad if not (e.g. if the column ends up not being displayed).&lt;/p&gt;
</description></item><item><title>5 Feb länkar</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9398033</link><pubDate>Thu, 05 Feb 2009 13:09:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9398033</guid><dc:creator>Fredrik ♥ C#</dc:creator><description>&lt;p&gt;En samlig utav l&amp;#228;nkar f&amp;#246;r er som utvecklar. ASP.NET iTunes skin grid Check/Uncheck all Items in an ASP&lt;/p&gt;
</description></item><item><title>Dynamic Data FAQ</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9432152</link><pubDate>Wed, 18 Feb 2009 21:52:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9432152</guid><dc:creator>Ricka on Dynamic Data</dc:creator><description>&lt;p&gt;Please post corrections/new submissions to the Dynamic Data Forum . Put FAQ Submission/Correction in&lt;/p&gt;
</description></item><item><title>ASP.NET 4.0 and Visual Studio 2010 Enhancements</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9468745</link><pubDate>Tue, 10 Mar 2009 09:31:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9468745</guid><dc:creator>Rotem Bloom's Blog</dc:creator><description>&lt;p&gt;Hi All, If you want to know more about the new ASP.NET 4.0 and Visual Studio 2010 enhancements you can&lt;/p&gt;
</description></item><item><title>ASP.NET Dynamic Data Resources</title><link>http://blogs.msdn.com/davidebb/archive/2008/10/25/a-many-to-many-field-template-for-dynamic-data.aspx#9702959</link><pubDate>Sat, 06 Jun 2009 20:33:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9702959</guid><dc:creator>Canadian Developer Connection</dc:creator><description>&lt;p&gt;Articles and Blog Posts A Many-To-Many Field Template for Dynamic Data (David Ebbo) Dynamic Data Preview&lt;/p&gt;
</description></item></channel></rss>