<?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 : Problems querying associations</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Problems querying associations</description>
  <pubDate>Tue, 21 Apr 2026 14:09:52 -700</pubDate>
  <lastBuildDate>Wed, 16 Jun 2010 10:19:36 -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=1895</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>Problems querying associations : A property value compatibility...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1895&amp;PID=7336#7336</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1895<br /><strong>Posted:</strong> 16-Jun-2010 at 10:19am<br /><br />A property value compatibility check can be triggered as an object graph is materialized during a query.&nbsp; The property it's complaining about could be on Closing, UserClosing, or even another type accessed via a navigation property on one of these types.&nbsp; The likely trigger is logic in an entity constructor - so check these; and also if you've overridden any UpdateNullEntity methods in your entities.&nbsp; <DIV>&nbsp;</DIV><DIV>If neither of the above looks like the culprit, please send us your EDMX.</DIV>]]>
   </description>
   <pubDate>Wed, 16 Jun 2010 10:19:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1895&amp;PID=7336#7336</guid>
  </item> 
  <item>
   <title>Problems querying associations : I have tried the following 2 queries...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1895&amp;PID=7317#7317</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=804" rel="nofollow">jmarbutt</a><br /><strong>Subject:</strong> 1895<br /><strong>Posted:</strong> 14-Jun-2010 at 7:30am<br /><br />I have tried the following 2 queries and get the same error:<br /><br />&nbsp;&nbsp;&nbsp;var query = from c in Context.Closings<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;where c.UserClosings.FirstOrDefault().UserId == CurrentUser.Id<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select c;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query.ExecuteAsync(op =&gt; op.Results.ForEach(Closings.Add));<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var query2 = from uc in Context.UserClosings<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;where uc.UserId == CurrentUser.Id<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;select uc;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query2 = query2.Include("Closing");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var op2 = query2.ExecuteAsync();<br /><br /><br />--------<br /><br />The error I get is:<br /><br />Value is not compatible with property: Id DataType: System.Int32 <br /><br /><br />I have checked my model and my data and they both look good. Any other ideas?<br /><br /><br />]]>
   </description>
   <pubDate>Mon, 14 Jun 2010 07:30:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1895&amp;PID=7317#7317</guid>
  </item> 
 </channel>
</rss>