<?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 : POCO Problem</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : POCO Problem</description>
  <pubDate>Sat, 11 Apr 2026 04:54:45 -700</pubDate>
  <lastBuildDate>Sun, 12 Jul 2009 20:00:44 -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=1366</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>POCO Problem : Hi Kim,  Thanks for the reply....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1366&amp;PID=4939#4939</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=537" rel="nofollow">pharry</a><br /><strong>Subject:</strong> 1366<br /><strong>Posted:</strong> 12-Jul-2009 at 8:00pm<br /><br />Hi Kim,<DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Thanks for the reply. After checking your suggestions I found I was returning&nbsp; IEnumerable&lt;State&gt; rather than IEnumerable&lt;User&gt;&nbsp;in my&nbsp;GetUses procedure,&nbsp;you need to be careful when copying code :-).</DIV></FONT>]]>
   </description>
   <pubDate>Sun, 12 Jul 2009 20:00:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1366&amp;PID=4939#4939</guid>
  </item> 
  <item>
   <title>POCO Problem : My guess is that the GotUsers...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1366&amp;PID=4936#4936</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> 1366<br /><strong>Posted:</strong> 10-Jul-2009 at 5:59pm<br /><br /><DIV>My guess is that the GotUsers method has the wrong signature.&nbsp; To keep the compiler happy it should be:</DIV><DIV>&nbsp;&nbsp; private void GotUsers(EntityFetchedEventArgs&lt;User&gt; args) </DIV><DIV>&nbsp;</DIV><DIV>In case that's not it, here's a review of other things to look at:</DIV><DIV>&nbsp;</DIV><DIV>1) The User class should be "shared" between the AppWithPocos and AppWithPocosWeb projects, just like the State class is in States.cs.</DIV><DIV>&nbsp;</DIV><DIV>2) Make sure that the User class is "known" to DevForce.&nbsp; There are several ways to do this, one is to have the class implement the marker interface IdeaBlade.EntityModel.IKnownType.</DIV><DIV>&nbsp;</DIV><DIV>3) Define a GetUsers method in a service provider class.&nbsp; The easiest place to do this is within the PocoServiceProvider class in the sample.&nbsp; The method should return an IEnumerable&lt;User&gt;.</DIV><DIV>&nbsp;</DIV><DIV>4) Since you tried a Users() extension method, it should be defined like so:</DIV><DIV>&nbsp; &nbsp;&nbsp;&nbsp; public static EntityQuery&lt;User&gt; Users(this EntityManager em) {<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return new EntityQuery&lt;User&gt;("Users", em);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR></DIV><DIV>5) The callback defined in the ExecuteQueryAsync or ExecuteAsync call should have the correct signature (as shown above).</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 10 Jul 2009 17:59:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1366&amp;PID=4936#4936</guid>
  </item> 
  <item>
   <title>POCO Problem : Hi, I am trying to extend the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1366&amp;PID=4917#4917</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=537" rel="nofollow">pharry</a><br /><strong>Subject:</strong> 1366<br /><strong>Posted:</strong> 08-Jul-2009 at 4:19am<br /><br />Hi,<DIV>I am trying to extend the POCO sample by adding a User class to the example.</DIV><DIV>&nbsp;</DIV><DIV>I am getting the following error when making the executeasync call.</DIV><DIV>&nbsp;</DIV><DIV>I have tried this:</DIV><DIV><FONT color=#008000 size=2><FONT color=#008000 size=2><P>_mgr.ExecuteQueryAsync&lt;User&gt;(_mgr.Users(), GotUsers, null);</P></FONT></FONT></DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2><DIV>and this:</DIV><DIV>&nbsp;</DIV><DIV>var</FONT></FONT><FONT size=2> rq = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>EntityQuery</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#2b91af size=2><FONT color=#2b91af size=2>User</FONT></FONT><FONT size=2>&gt;(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Users"</FONT></FONT><FONT size=2>, _mgr);</DIV><P>rq.ExecuteAsync(GotUsers, </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>null</FONT></FONT><FONT size=2>);</P><DIV>&nbsp;</DIV><DIV>TIA</DIV><DIV></FONT>&nbsp;</DIV></DIV><DIV>Error&nbsp;19&nbsp;'IdeaBlade.EntityModel.EntityQuery&lt;AppWithPocos.Pocos.User&gt;' does not contain a definition for 'ExecuteAsync' and the best extension method overload 'IdeaBlade.EntityModel.EntityQueryExtensions.ExecuteAsync&lt;T&gt;(IdeaBlade.EntityModel.IEntityQuery&lt;T&gt;, IdeaBlade.EntityModel.AsyncCompletedCallback&lt;IdeaBlade.EntityModel.EntityFetchedEventArgs&lt;T&gt;&gt;, object)' has some invalid arguments&nbsp;C:\Dev\Pocos\AppWithPocos\MainPage.xaml.cs&nbsp;62&nbsp;9&nbsp;AppWithPocos<BR></DIV><DIV>Error&nbsp;20&nbsp;Argument '2': cannot convert from 'method group' to 'IdeaBlade.EntityModel.AsyncCompletedCallback&lt;IdeaBlade.EntityModel.EntityFetchedEventArgs&lt;AppWithPocos.Pocos.User&gt;&gt;'&nbsp;C:\Dev\Pocos\AppWithPocos\MainPage.xaml.cs&nbsp;62&nbsp;25&nbsp;AppWithPocos<BR></DIV>]]>
   </description>
   <pubDate>Wed, 08 Jul 2009 04:19:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1366&amp;PID=4917#4917</guid>
  </item> 
 </channel>
</rss>