<?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 : A &#039;not-so-basic&#039; PersistenceService example.</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : A &#039;not-so-basic&#039; PersistenceService example.</description>
  <pubDate>Sat, 11 Apr 2026 08:28:01 -700</pubDate>
  <lastBuildDate>Tue, 09 Jun 2009 19:58:05 -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=1309</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>A &#039;not-so-basic&#039; PersistenceService example. : &amp;gt;&amp;gt; ... as long as you are...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1309&amp;PID=4742#4742</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=518" rel="nofollow">philcockfield</a><br /><strong>Subject:</strong> 1309<br /><strong>Posted:</strong> 09-Jun-2009 at 7:58pm<br /><br /><font color="#990000">&gt;&gt; ... as long as you are prepared to regard it as a point of departure for your own work.</font><br><br>Thanks <b>Ward</b>...I'll do just that.&nbsp; A good point of departure is just what I'm looking for.<br><br><font color="#990000">&gt;&gt; Finally, a word about the "one async operation at a time" .... We didn't want to burden this sample code with them. We can start a new thread to discuss such feature if you like.</font><br><br>Great - I'll get back to you on this once (or if) I encounter the need.&nbsp; Your comment suggests it might just not be a realistic concern.<br><br>Thanks again.<br>--<br><b>Phil</b><br>]]>
   </description>
   <pubDate>Tue, 09 Jun 2009 19:58:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1309&amp;PID=4742#4742</guid>
  </item> 
  <item>
   <title>A &#039;not-so-basic&#039; PersistenceService example. : Yes, we do have tutorials and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1309&amp;PID=4738#4738</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=482" rel="nofollow">WardBell</a><br /><strong>Subject:</strong> 1309<br /><strong>Posted:</strong> 09-Jun-2009 at 11:22am<br /><br />Yes, we do have tutorials and some code samples for more robust saving and exception handling.<DIV>&nbsp;</DIV><DIV>We were trying not overwhelm the example with all of the stuff you can do in a real application, including: </DIV><UL><LI>Check for "nothing to save"</LI><LI>Validate all entities that are about to be saved (client-side, server-side, or both)</LI><LI>Process and respond to the several types of exceptions that might be reported (lost connection,&nbsp;concurrency violation, unexpected database integrity or schema complaints (oops!), ...)</LI><LI>Raise&nbsp;EventAggregator event&nbsp;identifying saved/deleted entities that other modules might care about</LI></UL><P>In industrial code, I end up with quite a few PersistenceService helper classes to carry this load. It's a bit much to stuff into a Model Explorer / Prism Explorer and, frankly, we were concerned that, if we included it in our sample, people would conclude that DevForce itself&nbsp;is too complicated.</P><DIV>It is not DevForce that is complicated. It is the requirement that is complicated.</DIV><DIV>&nbsp;</DIV><DIV>If you look around ... check out any magazine article or any vendor's code samples&nbsp;... you will observe that these concerns are never addressed. They are alluded to but no one wants to reveal these aspects of the sausage factory.</DIV><DIV>&nbsp;</DIV><DIV>On the other hand, I don't want you to have to re-invent the machinery that we've already got stashed in the back room. </DIV><DIV>&nbsp;</DIV><DIV>I'm not prepared to do a big scrub and public&nbsp;presentation of this topic just yet. Do ping our support team if you want a copy of the code "as is". The machinery isn't beautiful and well documented ... but it exists ... and we'll share it with you ... as long as you are prepared to regard it as a point of departure for your own work. </DIV><DIV>&nbsp;</DIV><DIV>Finally, a word about the "one async operation at a time" comment. Most applications don't need to stack up a bunch of queries that are processed collectively. DevForce has some pretty cool support for this kind of thing - both parallel and serial async operations (with inter-operation dependencies and exception handling). We didn't want to burden this sample code with them. We can start a new thread to discuss such feature if you like.</DIV>]]>
   </description>
   <pubDate>Tue, 09 Jun 2009 11:22:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1309&amp;PID=4738#4738</guid>
  </item> 
  <item>
   <title>A &#039;not-so-basic&#039; PersistenceService example. : In the ModelExplorer (and PrismExplorer)...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1309&amp;PID=4719#4719</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=518" rel="nofollow">philcockfield</a><br /><strong>Subject:</strong> 1309<br /><strong>Posted:</strong> 07-Jun-2009 at 10:14am<br /><br />In the ModelExplorer (and PrismExplorer) examples there is a Persistence service implmenetation called 'BasicPersistenceService' which has the following remarks:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;/// &lt;summary&gt;A basic implementation of IPersistenceService.&lt;/summary&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;/// &lt;remarks&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;/// Will only perform one async operation at a time.<br />&nbsp;&nbsp;&nbsp;&nbsp;/// Limited exception handling<br />&nbsp;&nbsp;&nbsp;&nbsp;/// No save smarts.<br />&nbsp;&nbsp;&nbsp;&nbsp;/// &lt;/remarks&gt;<br /><br />Do you have reference examples of more sophisticated persistence-service implementations with 'save smarts' and 'multi async operation' abilities?  Or maybe just comments on what kinds of save smarts would be sensible to consider...etc etc./<br /><br />Just checking...while I'm in learning mode I'm being careful not to rush out and re-invent the wheel wherever possible.<br /><br />Thanks!<br /><br />]]>
   </description>
   <pubDate>Sun, 07 Jun 2009 10:14:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1309&amp;PID=4719#4719</guid>
  </item> 
 </channel>
</rss>