<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Many-to-Many Error</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Many-to-Many Error</description>
  <pubDate>Fri, 10 Apr 2026 20:19:35 -700</pubDate>
  <lastBuildDate>Fri, 02 Nov 2012 10:57:19 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3762</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Many-to-Many Error :  Breeze doesn&amp;#039;t yet support...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3762&amp;PID=15065#15065</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1524" rel="nofollow">jtraband</a><br /><strong>Subject:</strong> 3762<br /><strong>Posted:</strong> 02-Nov-2012 at 10:57am<br /><br />Breeze doesn't yet support many-to-many relations where the mapping table is hidden. The problem is that we depend on a "foreignKey"concept to keep track of relationships and this is not available for many-to-many relations.&nbsp;<div><br></div><div>What does work now is to change your many-to-many relationship into two 1-to-many relations with a linking object. Basically, just expose the mapping table as another entity type. For example:<br><br>Team -- TeamUser&nbsp; (1-to-many)<br>User -- TeamUser&nbsp; (1-to-many)<br><br>We do plan to support Entity Framework's official many-to-many relationship in a later release but we need to prioritize this. So please add and vote for this feature request using the feedback mechanism on the web site (small icon on the right side of any Breeze website page labeled "Feedback"). This helps us decide which features to focus on next.<br><br></div><span style="font-size:10px"><br /><br />Edited by ting - 02-Nov-2012 at 11:24am</span>]]>
   </description>
   <pubDate>Fri, 02 Nov 2012 10:57:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3762&amp;PID=15065#15065</guid>
  </item> 
  <item>
   <title>Many-to-Many Error : Hi there,i am defining some of...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3762&amp;PID=15059#15059</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1559" rel="nofollow">SirSmackalot</a><br /><strong>Subject:</strong> 3762<br /><strong>Posted:</strong> 02-Nov-2012 at 8:51am<br /><br />Hi there,<br><br>i am defining some of my models atm using EF5 Code First. I have these three sample classes with a many-to-many relationship:<br><table width="99%"><tr><td><pre class="BBcode"><br>public class Team<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public int Team_Id { get; set; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;MaxLength(150)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string TeamName { get; set; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public virtual ICollection&lt;User&gt; Users { get; set; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;public virtual ICollection&lt;Role&gt; Roles { get; set; }&nbsp; // 1<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;Timestamp&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public byte&#091;&#093; TimeStamp { get; set; }<br>&nbsp;&nbsp;&nbsp; }<br><br>public class User<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public int User_Id { get; set; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;MaxLength(150)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string LoginName { get; set; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;MaxLength(150)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string Nachname { get; set; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;MaxLength(150)&#093;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string Vorname { get; set; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public virtual ICollection&lt;Team&gt; Teams { get; set; } <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public virtual ICollection&lt;Role&gt; Roles { get; set; }&nbsp;&nbsp; // 2<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;Timestamp&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public byte&#091;&#093; TimeStamp { get; set; }<br>&nbsp;&nbsp;&nbsp; }<br><br>public class Role<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public int Role_Id { get; set; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;MaxLength(50)&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public string RoleName { get; set; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;Timestamp&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public byte&#091;&#093; TimeStamp { get; set; }<br>&nbsp;&nbsp;&nbsp; }<br><br><br></pre></td></tr></table><br><br>As you can see there is a many-to-many relationship between teams and users. I am trying to get this to work for hours. <br>I always get an JS Exception with the error message "bad nav properties" in VS 2012.<br>At first i thought it was the ICollections Teams/Users in Users/Teams-Class but it wasnt. The problem seems to be the two calls 1) and 2). I f i remove either one of them it works. Renaming one and keeping both fields active still throws the error. <br>Maybe anyone has an idea what is going on.<br><br>Many thanks<br><br>]]>
   </description>
   <pubDate>Fri, 02 Nov 2012 08:51:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3762&amp;PID=15059#15059</guid>
  </item> 
 </channel>
</rss>