<?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 : MVVM and who should invoke RemoteServerMethod?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : MVVM and who should invoke RemoteServerMethod?</description>
  <pubDate>Sun, 12 Apr 2026 02:47:50 -700</pubDate>
  <lastBuildDate>Tue, 08 Feb 2011 18:41:41 -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=2490</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>MVVM and who should invoke RemoteServerMethod? : Hi BillG;I hope what you mean...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2490&amp;PID=9901#9901</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2490<br /><strong>Posted:</strong> 08-Feb-2011 at 6:41pm<br /><br />Hi BillG;<div><br></div><div>I hope what you mean by Repository is the Data Services layer that actually interacts with the EM. If so, then looking at Ward's BookShelfDF example, what you're describing is the correct way to do it. In the BookShelfDF, the ViewModel interacts with the Services layer that does the actual interaction with the EM and the Services layer does the actual calling of the InvokeServerMethodAsync.</div><div><br></div><div>I suggest that you look at these resources that I'm sure will answer your questions better.</div><div><br></div><div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/DevForce-MVVM-Patterns" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/DevForce-MVVM-Patterns</a></div><div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/BadGolf" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/BadGolf</a></div><div><br></div><div>Hope this helps.</div>]]>
   </description>
   <pubDate>Tue, 08 Feb 2011 18:41:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2490&amp;PID=9901#9901</guid>
  </item> 
  <item>
   <title>MVVM and who should invoke RemoteServerMethod? : I am trying to figure out which...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2490&amp;PID=9880#9880</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 2490<br /><strong>Posted:</strong> 07-Feb-2011 at 10:27am<br /><br />I am trying to figure out which class should invoke the RemoteServerMethod? I first thought of the ViewModel but the InvokeServerMethodAsync is called using the EntityManager. My ViewModel doesn't have any knowledge to the entitymanager as my viewmodel calls the repository who calls the various CRUD methods. So I am thinking that the ViewModel should call the Repository and pass over the methodname and typename and let the repository call the invokeServerMethodAsync unless there is another approach or I am missing something. On the other hand this is not really a method for the repository because inside the remoteservermethod I make CRUD calls but since the repository class is the only class that knows of the entitymanager I can't think of any better way to do it.<br><br>Bill]]>
   </description>
   <pubDate>Mon, 07 Feb 2011 10:27:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2490&amp;PID=9880#9880</guid>
  </item> 
 </channel>
</rss>