<?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 : How add a custom method to entitymanager class ?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : How add a custom method to entitymanager class ?</description>
  <pubDate>Tue, 21 Apr 2026 10:41:27 -700</pubDate>
  <lastBuildDate>Sat, 12 Jun 2010 07:06:25 -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=1864</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>How add a custom method to entitymanager class ? : Use EntityManager.InvokeServerMethodAsync()....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7301#7301</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1864<br /><strong>Posted:</strong> 12-Jun-2010 at 7:06am<br /><br />Use EntityManager.InvokeServerMethodAsync(). See the documentation on Remote Service Methods.]]>
   </description>
   <pubDate>Sat, 12 Jun 2010 07:06:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7301#7301</guid>
  </item> 
  <item>
   <title>How add a custom method to entitymanager class ? : I exactly want to retreive from...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7297#7297</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=801" rel="nofollow">ehsan</a><br /><strong>Subject:</strong> 1864<br /><strong>Posted:</strong> 11-Jun-2010 at 10:25pm<br /><br />I exactly want to retreive from database, but not using default operations of entitymanager or using linq to devforce queries, but&nbsp;by calling some async server methods. How can i do it ?]]>
   </description>
   <pubDate>Fri, 11 Jun 2010 22:25:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7297#7297</guid>
  </item> 
  <item>
   <title>How add a custom method to entitymanager class ? : The EntityManager is operating...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7260#7260</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1864<br /><strong>Posted:</strong> 10-Jun-2010 at 4:23pm<br /><br />The EntityManager is operating client-side. You can do all of the synchronous client-side stuff you want to.  If you have to retrieve data from the backend database, that's a different story.]]>
   </description>
   <pubDate>Thu, 10 Jun 2010 16:23:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7260#7260</guid>
  </item> 
  <item>
   <title>How add a custom method to entitymanager class ? : Ishared my partial class as linked...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7215#7215</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=801" rel="nofollow">ehsan</a><br /><strong>Subject:</strong> 1864<br /><strong>Posted:</strong> 08-Jun-2010 at 8:36pm<br /><br />I&nbsp;shared my partial class as linked file in client project &amp; now I can call methods, but synchronously ! I've heared that&nbsp;silverlight does not supports synchronous calls, but I can call them synchronously !!!<DIV>Assume that my method does a time-consuming operation &amp; returns a serializable data type, how can I define an asynchronous operation here ?</DIV>]]>
   </description>
   <pubDate>Tue, 08 Jun 2010 20:36:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7215#7215</guid>
  </item> 
  <item>
   <title>How add a custom method to entitymanager class ? : As I said before, you&amp;#039;ll...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7210#7210</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1864<br /><strong>Posted:</strong> 08-Jun-2010 at 5:41pm<br /><br />As I said before, you'll need to add the file with the partial EM class as a shared file in your client project in order to have access to the method - just as the TestTableModel.IB.Designer.cs file is linked as a shared file. <br /><br />As for "calling it asynchronously": what exactly do you want this method to do and/or return?]]>
   </description>
   <pubDate>Tue, 08 Jun 2010 17:41:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7210#7210</guid>
  </item> 
  <item>
   <title>How add a custom method to entitymanager class ? : I&amp;#039;ve a file which has created...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7195#7195</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=801" rel="nofollow">ehsan</a><br /><strong>Subject:</strong> 1864<br /><strong>Posted:</strong> 07-Jun-2010 at 11:13pm<br /><br /><DIV>I've a file which has created by EntityFramework wizard &amp; modified by devforce, it name is : TestTableModel.IB.Designer.cs</DIV><DIV>It contains :</DIV><DIV>&nbsp;</DIV><DIV>...</DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><P>namespace</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> DevForceSilverlightApplication { </P><P></FONT></FONT><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas>///</FONT></FONT></FONT><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas> </FONT></FONT></FONT><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas>&lt;summary&gt;</P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P></FONT></FONT><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas>///</FONT></FONT></FONT><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas> The domain-specific EntityManager for your domain model.</P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P></FONT></FONT><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas>///</FONT></FONT></FONT><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas> </FONT></FONT></FONT><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas>&lt;/summary&gt;</P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P>&#091;IbEm.</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>DataSourceKeyName</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>(</FONT></FONT><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas>@"TestEntities"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>)&#093;</P><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>public</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>partial</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>class</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>TestEntities</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> : IbEm.</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>EntityManager</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> {</P><DIV></FONT></FONT>...</DIV><DIV>&nbsp;</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>now I want to add some methods to TestEntities class (for example doTest method), I created a partical class in a new file &amp; named id TestEntities.cs&nbsp;: </DIV></DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><P>namespace</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> DevForceSilverlightApplication {</FONT></FONT> <P><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas></P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>public</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>partial</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>class</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>TestEntities</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> <FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas>/*: IbEm.EntityManager*/</FONT></FONT></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>{</FONT></FONT><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas> <P></P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P></FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>&nbsp;&nbsp; public</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>void</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> doTest() { ... }</P><P>}</P><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>I think this problem is a little more complicated than just adding a partial class &amp; defining methods.</DIV><DIV>In wcf there is an &#091;OperationContract&#093; directive which identifies this method is a service operation, or in RIA there is an &#091;EnableClientAcceess&#093; directive which identifies client can see this class.</DIV><DIV>but here how can i access doTest method from client entitymanager object &amp; call it asynchronously in silverlight ?</FONT></FONT></DIV></DIV><span style="font-size:10px"><br /><br />Edited by ehsan - 08-Jun-2010 at 2:41am</span>]]>
   </description>
   <pubDate>Mon, 07 Jun 2010 23:13:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7195#7195</guid>
  </item> 
  <item>
   <title>How add a custom method to entitymanager class ? : Did you define your partial class...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7180#7180</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1864<br /><strong>Posted:</strong> 07-Jun-2010 at 2:19pm<br /><br />Did you define your partial class file in the web project and then forget to share it on the client? That would explain this:<br><br><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by ehsan</strong></em><br /><br />I tried to define them is a partial class but in this state I cant access them from client...</td></tr></table>]]>
   </description>
   <pubDate>Mon, 07 Jun 2010 14:19:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7180#7180</guid>
  </item> 
  <item>
   <title>How add a custom method to entitymanager class ? : I want to ad some custome methods...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7164#7164</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=801" rel="nofollow">ehsan</a><br /><strong>Subject:</strong> 1864<br /><strong>Posted:</strong> 07-Jun-2010 at 1:15am<br /><br />I want to ad some custome methods to entity manager in my domain model . I need call those methods directly using silverlight, so they must be async . <DIV>how can i do this &amp; where is the best place for defining such methods ? ( I tried to define them is a partial class but in this state I cant access them from client, when i define them in the main class, Client can see them, but when call them nothing happens. I know I&nbsp;should define them in a manner&nbsp;that I can call them asynchronously, but i&nbsp;dont know how :(( )</DIV><span style="font-size:10px"><br /><br />Edited by ehsan - 07-Jun-2010 at 1:23am</span>]]>
   </description>
   <pubDate>Mon, 07 Jun 2010 01:15:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1864&amp;PID=7164#7164</guid>
  </item> 
 </channel>
</rss>