<?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 : Emitting DML scripts ...</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Emitting DML scripts ...</description>
  <pubDate>Wed, 10 Jun 2026 07:18:58 -700</pubDate>
  <lastBuildDate>Tue, 15 Feb 2011 08:01:57 -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=2509</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>Emitting DML scripts ... : Yeah, I saw that tutorial. Still...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2509&amp;PID=9957#9957</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=438" rel="nofollow">klmcwhirter</a><br /><strong>Subject:</strong> 2509<br /><strong>Posted:</strong> 15-Feb-2011 at 8:01am<br /><br />Yeah, I saw that tutorial. Still too much work and not enough control. I do not want to probe to include it. There are other parts of the app that need to use the default IAdapterProvider.<DIV>&nbsp;</DIV><DIV>So that would not work.</DIV><DIV>&nbsp;</DIV><DIV>Thanks anyway.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 15 Feb 2011 08:01:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2509&amp;PID=9957#9957</guid>
  </item> 
  <item>
   <title>Emitting DML scripts ... : A custom IAdapterProvider is the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2509&amp;PID=9952#9952</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> 2509<br /><strong>Posted:</strong> 14-Feb-2011 at 6:21pm<br /><br /><P>A custom IAdapterProvider is the supported way of doing this.&nbsp;&nbsp; DevForce will find your implementation if it's in the probe assembles, and &nbsp;based on the return value of the SupportedEntityTypes property use your provider for only the entity type(s) wanted.&nbsp; DevForce will take care of adding it to the map, so yo don't need to poke it or the PersistenceServer or muck with other DevForce internals.</P><DIV></DIV><DIV></DIV>There's a sample IAdapterProvider in the learning unit "Insert Delete Update with Stored Procs".]]>
   </description>
   <pubDate>Mon, 14 Feb 2011 18:21:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2509&amp;PID=9952#9952</guid>
  </item> 
  <item>
   <title>Emitting DML scripts ... : After I have manipulated the objects...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2509&amp;PID=9950#9950</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=438" rel="nofollow">klmcwhirter</a><br /><strong>Subject:</strong> 2509<br /><strong>Posted:</strong> 14-Feb-2011 at 5:51pm<br /><br />After I have manipulated the objects for a given Entity I now would like to emit DML (delete, update, insert statements) for that Entity.<DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>I have looked all the way into the PersistenceServer, but am not finding the elegant hook I am looking for.</DIV><DIV>&nbsp;</DIV><DIV>PersistenceServer has the AdapterProviderMap which may help if I could add my own IAdapterProvider at the right moment in time, but cannot get to the underlying instance via PersistenceServer. And even that seems like it would be more work than would be practical for one single Entity. Next thought ...</DIV><DIV>&nbsp;</DIV><DIV>It seems like overriding the TransactionManagerHelper.SaveTable(...) method would head me down the path I am looking for. This would mean creating my own ITransactionManager (that would use my helper imp) which leads to creating my own PersistenceServer to use my ITransactionManager implementation. PersistenceManager has a ctor that takes a PersistenceServer. But, sheesh ...</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>See my point? I think I am over complicating this.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Is there a simple way to have pm.SaveChanges() emit a SQL DML script and *think* it saved successfully if the script was saved - and save nothing to the table it originally read from?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>If need be I can just hard code the DML in the Entity - but thought there must be an elegant solution to allow DevForce to call the delete, update, inserts in the correct order, etc.</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance.</DIV>]]>
   </description>
   <pubDate>Mon, 14 Feb 2011 17:51:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2509&amp;PID=9950#9950</guid>
  </item> 
 </channel>
</rss>