<?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 : Error with added association in edmx</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Error with added association in edmx</description>
  <pubDate>Tue, 21 Apr 2026 23:52:20 -700</pubDate>
  <lastBuildDate>Tue, 17 Aug 2010 23:14:29 -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=2069</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>Error with added association in edmx :  I can confirm that swapping...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2069&amp;PID=8084#8084</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 2069<br /><strong>Posted:</strong> 17-Aug-2010 at 11:14pm<br /><br />I can confirm that swapping out DF for EF4 gives no error message.<br>I'll email you a sample project showing the error.<br><br><span style="font-size:10px"><br /><br />Edited by jsobell - 17-Aug-2010 at 11:15pm</span>]]>
   </description>
   <pubDate>Tue, 17 Aug 2010 23:14:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2069&amp;PID=8084#8084</guid>
  </item> 
  <item>
   <title>Error with added association in edmx : Can you check that this works...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2069&amp;PID=8082#8082</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 2069<br /><strong>Posted:</strong> 17-Aug-2010 at 7:00pm<br /><br /><P>Can you check that this works with the raw Entity Framework?&nbsp; There are a few Linq2SQL statements that don't work with Linq2Entities.</P><DIV></DIV>]]>
   </description>
   <pubDate>Tue, 17 Aug 2010 19:00:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2069&amp;PID=8082#8082</guid>
  </item> 
  <item>
   <title>Error with added association in edmx : I&amp;#039;ve just converted a Linq2SQL...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2069&amp;PID=8077#8077</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=485" rel="nofollow">jsobell</a><br /><strong>Subject:</strong> 2069<br /><strong>Posted:</strong> 16-Aug-2010 at 10:54pm<br /><br />I've just converted a Linq2SQL project to DF (and yes, I recreated the edmx from scratch), but when calling queries to load in a snapshot of data I get the error shown below.<br>The issue appears when I add an association 1-* between a table and a view, and while this works in Linq2SQL (and worked in LLBLGen before that) I can't get it to work in DF due to what appears to be a data error.<br>Removing the association removes the error, but why an index out of range error???<br>I'm a bit stuck here, any ideas what might be going on?<br><br><font face="Courier New, Courier, mono" size="2"><br>{System.IndexOutOfRangeException: Index was outside the bounds of the array.<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.Entity.GetValueRaw(DataEntityProperty property, EntityVersion version)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.GetValueRaw(DataEntityProperty property)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.&lt;GetValuesRaw&gt;b__9(DataEntityProperty p)<br>&nbsp;&nbsp; at System.Linq.Enumerable.&lt;&gt;c__DisplayClass12`3.&lt;CombineSelectors&gt;b__11(TSource x)<br>&nbsp;&nbsp; at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()<br>&nbsp;&nbsp; at System.Linq.Buffer`1..ctor(IEnumerable`1 source)<br>&nbsp;&nbsp; at System.Linq.Enumerable.ToArray&#091;TSource&#093;(IEnumerable`1 source)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.GetValuesRaw(IEnumerable`1 properties)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FindRelatedWrappers(EntityRelationLink relationLink, Boolean includeDeleted)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FindRelatedWrapper(EntityRelationLink relationLink, Boolean includeDeleted)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.ScalarEntityReference`1.FindToEntity()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.ScalarEntityReference`1.FixupReferences()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.&lt;FixupReferences&gt;b__13(EntityReferenceBase eref)<br>&nbsp;&nbsp; at IdeaBlade.Core.EnumerableFns.ForEach&#091;T&#093;(IEnumerable`1 items, Action`1 action)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FixupReferences()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.TrackChanged(EntityChangedEventArgs e)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.OnEntityChanged(EntityChangedEventArgs e)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.AddQueriedEntity(EntityWrapper wrapper)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.LoadEntity(EntityWrapper sourceWrapper, MergeStrategy mergeStrategy, Boolean&amp; rowUpdated)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntityCore(EntityWrapper sourceWrapper, EntityGroup targetEntityGroup)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntity(EntityWrapper sourceWrapper, EntityGroup targetEntityGroup, NavigationContext context)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.&lt;&gt;c__DisplayClass1.&lt;MergeEntities&gt;b__0(EntityWrapper sourceWrapper)<br>&nbsp;&nbsp; at System.Linq.Enumerable.&lt;&gt;c__DisplayClass12`3.&lt;CombineSelectors&gt;b__11(TSource x)<br>&nbsp;&nbsp; at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()<br>&nbsp;&nbsp; at IdeaBlade.Core.EnumerableFns.ForEach&#091;T&#093;(IEnumerable`1 items, Action`1 action)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.DataBlockFns.MakeResultList(Type type, IEnumerable items, Boolean isOrdered)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResult.UpdateDataSet(EntitiesDataBlock block, NavigationContext context)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntitiesDataBlock.Resolve(EntityQueryResult helper)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResult..ctor(DataQueryResult dataQueryResult, EntityManager entityManager, MergeStrategy mergeStrategy, Guid queryId, QueryInfo queryInfo)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResultCollection..ctor(DataQueryResultCollection dqResults, EntityManager entityManager, MergeStrategy mergeStrategy)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.MergeAndReturnUsingCache(IEntityFinder finder, DataQueryResultCollection dqResults)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ProcessFetchedData(DataQueryResultCollection dqResults, IEntityFinder finder)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.AsyncFetchCompleted(AsyncEventArgs args)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.&lt;ExecuteQueryAsyncCore&gt;b__57&#091;T&#093;(EntityQueryOperation`1 op)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.AsyncProcessor`1.&lt;Execute&gt;b__5(Object x)}<br>&nbsp;&nbsp;&nbsp; &#091;System.IndexOutOfRangeException&#093;: {System.IndexOutOfRangeException: Index was outside the bounds of the array.<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.Entity.GetValueRaw(DataEntityProperty property, EntityVersion version)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.GetValueRaw(DataEntityProperty property)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.&lt;GetValuesRaw&gt;b__9(DataEntityProperty p)<br>&nbsp;&nbsp; at System.Linq.Enumerable.&lt;&gt;c__DisplayClass12`3.&lt;CombineSelectors&gt;b__11(TSource x)<br>&nbsp;&nbsp; at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()<br>&nbsp;&nbsp; at System.Linq.Buffer`1..ctor(IEnumerable`1 source)<br>&nbsp;&nbsp; at System.Linq.Enumerable.ToArray&#091;TSource&#093;(IEnumerable`1 source)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.GetValuesRaw(IEnumerable`1 properties)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FindRelatedWrappers(EntityRelationLink relationLink, Boolean includeDeleted)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FindRelatedWrapper(EntityRelationLink relationLink, Boolean includeDeleted)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.ScalarEntityReference`1.FindToEntity()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.ScalarEntityReference`1.FixupReferences()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.&lt;FixupReferences&gt;b__13(EntityReferenceBase eref)<br>&nbsp;&nbsp; at IdeaBlade.Core.EnumerableFns.ForEach&#091;T&#093;(IEnumerable`1 items, Action`1 action)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FixupReferences()<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.TrackChanged(EntityChangedEventArgs e)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.OnEntityChanged(EntityChangedEventArgs e)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.AddQueriedEntity(EntityWrapper wrapper)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.LoadEntity(EntityWrapper sourceWrapper, MergeStrategy mergeStrategy, Boolean&amp; rowUpdated)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntityCore(EntityWrapper sourceWrapper, EntityGroup targetEntityGroup)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntity(EntityWrapper sourceWrapper, EntityGroup targetEntityGroup, NavigationContext context)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.&lt;&gt;c__DisplayClass1.&lt;MergeEntities&gt;b__0(EntityWrapper sourceWrapper)<br>&nbsp;&nbsp; at System.Linq.Enumerable.&lt;&gt;c__DisplayClass12`3.&lt;CombineSelectors&gt;b__11(TSource x)<br>&nbsp;&nbsp; at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()<br>&nbsp;&nbsp; at IdeaBlade.Core.EnumerableFns.ForEach&#091;T&#093;(IEnumerable`1 items, Action`1 action)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.DataBlockFns.MakeResultList(Type type, IEnumerable items, Boolean isOrdered)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResult.UpdateDataSet(EntitiesDataBlock block, NavigationContext context)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntitiesDataBlock.Resolve(EntityQueryResult helper)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResult..ctor(DataQueryResult dataQueryResult, EntityManager entityManager, MergeStrategy mergeStrategy, Guid queryId, QueryInfo queryInfo)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResultCollection..ctor(DataQueryResultCollection dqResults, EntityManager entityManager, MergeStrategy mergeStrategy)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.MergeAndReturnUsingCache(IEntityFinder finder, DataQueryResultCollection dqResults)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ProcessFetchedData(DataQueryResultCollection dqResults, IEntityFinder finder)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.AsyncFetchCompleted(AsyncEventArgs args)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.&lt;ExecuteQueryAsyncCore&gt;b__57&#091;T&#093;(EntityQueryOperation`1 op)<br>&nbsp;&nbsp; at IdeaBlade.EntityModel.AsyncProcessor`1.&lt;Execute&gt;b__5(Object x)}<br>&nbsp;&nbsp;&nbsp; Data: {System.Collections.ListDictionaryInternal}<br>&nbsp;&nbsp;&nbsp; InnerException: null<br>&nbsp;&nbsp;&nbsp; Message: "Index was outside the bounds of the array."<br>&nbsp;&nbsp;&nbsp; StackTrace: "&nbsp;&nbsp; at IdeaBlade.EntityModel.Entity.GetValueRaw(DataEntityProperty property, EntityVersion version)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.GetValueRaw(DataEntityProperty property)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.&lt;GetValuesRaw&gt;b__9(DataEntityProperty p)\r\n&nbsp;&nbsp; at System.Linq.Enumerable.&lt;&gt;c__DisplayClass12`3.&lt;CombineSelectors&gt;b__11(TSource x)\r\n&nbsp;&nbsp; at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()\r\n&nbsp;&nbsp; at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n&nbsp;&nbsp; at System.Linq.Enumerable.ToArray&#091;TSource&#093;(IEnumerable`1 source)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.GetValuesRaw(IEnumerable`1 properties)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FindRelatedWrappers(EntityRelationLink relationLink, Boolean includeDeleted)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FindRelatedWrapper(EntityRelationLink relationLink, Boolean includeDeleted)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.ScalarEntityReference`1.FindToEntity()\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.ScalarEntityReference<br>`1.FixupReferences()\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.&lt;FixupReferences&gt;b__13(EntityReferenceBase eref)\r\n&nbsp;&nbsp; at IdeaBlade.Core.EnumerableFns.ForEach&#091;T&#093;(IEnumerable`1 items, Action`1 action)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.FixupReferences()\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityWrapper.TrackChanged(EntityChangedEventArgs e)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.OnEntityChanged(EntityChangedEventArgs e)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.AddQueriedEntity(EntityWrapper wrapper)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityGroup.LoadEntity(EntityWrapper sourceWrapper, MergeStrategy mergeStrategy, Boolean&amp; rowUpdated)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntityCore(EntityWrapper sourceWrapper, EntityGroup targetEntityGroup)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.MergeEntity(EntityWrapper sourceWrapper, EntityGroup targetEntityGroup, NavigationContext context)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityMerger.&lt;&gt;c__DisplayClass1.&lt;MergeEntities&gt;b__0(EntityWrapper sourceWrapper)\<br>r\n&nbsp;&nbsp; at System.Linq.Enumerable.&lt;&gt;c__DisplayClass12`3.&lt;CombineSelectors&gt;b__11(TSource x)\r\n&nbsp;&nbsp; at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()\r\n&nbsp;&nbsp; at IdeaBlade.Core.EnumerableFns.ForEach&#091;T&#093;(IEnumerable`1 items, Action`1 action)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.DataBlockFns.MakeResultList(Type type, IEnumerable items, Boolean isOrdered)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResult.UpdateDataSet(EntitiesDataBlock block, NavigationContext context)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntitiesDataBlock.Resolve(EntityQueryResult helper)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResult..ctor(DataQueryResult dataQueryResult, EntityManager entityManager, MergeStrategy mergeStrategy, Guid queryId, QueryInfo queryInfo)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryResultCollection..ctor(DataQueryResultCollection dqResults, EntityManager entityManager, MergeStrategy mergeStrategy)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.MergeAndReturnUsingCache(IEntityFinder finder, DataQueryResultCollection dqResults<br>)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ProcessFetchedData(DataQueryResultCollection dqResults, IEntityFinder finder)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.AsyncFetchCompleted(AsyncEventArgs args)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.&lt;ExecuteQueryAsyncCore&gt;b__57&#091;T&#093;(EntityQueryOperation`1 op)\r\n&nbsp;&nbsp; at IdeaBlade.EntityModel.AsyncProcessor`1.&lt;Execute&gt;b__5(Object x)"<br></font><br>]]>
   </description>
   <pubDate>Mon, 16 Aug 2010 22:54:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2069&amp;PID=8077#8077</guid>
  </item> 
 </channel>
</rss>