<?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 : using stored procedure function mapping for updating data</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : using stored procedure function mapping for updating data</description>
  <pubDate>Tue, 12 May 2026 19:34:47 -700</pubDate>
  <lastBuildDate>Fri, 18 Jun 2010 15:33:06 -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=1665</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>using stored procedure function mapping for updating data : DevForce 2010 now support entities...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1665&amp;PID=7357#7357</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> 1665<br /><strong>Posted:</strong> 18-Jun-2010 at 3:33pm<br /><br />DevForce 2010 now support entities backed by stored procedures, as of version 6.0.3.]]>
   </description>
   <pubDate>Fri, 18 Jun 2010 15:33:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1665&amp;PID=7357#7357</guid>
  </item> 
  <item>
   <title>using stored procedure function mapping for updating data : This is a known issue which we...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1665&amp;PID=6294#6294</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=21" rel="nofollow">IdeaBlade</a><br /><strong>Subject:</strong> 1665<br /><strong>Posted:</strong> 04-Mar-2010 at 2:52pm<br /><br />This is a known issue which we plan to address in a future release. For performance reasons, DevForce only passes <i>changes</i> to the Entity Framework; but to accommodate an update via stored procedure, we'll need to seek out from the EF metadata that this is to be the mechanism, and then in that case change what we pass to EF.<br><br>The workaround is to communicate with the database directly using DevForce's <i>AdoHelper </i>class. You can find an example of that in the <i>AllocateMoreIds() </i>method in the <i>NumericIdGenerator.cs </i>(or <i>.vb</i>) file in the DevForce Learning Resources, at<br><br>&nbsp;&nbsp;&nbsp;&nbsp; LearningResources\040_BusObjPersistence\AddingDeleting\Snippets\NumericIdGenerator<br>]]>
   </description>
   <pubDate>Thu, 04 Mar 2010 14:52:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1665&amp;PID=6294#6294</guid>
  </item> 
  <item>
   <title>using stored procedure function mapping for updating data : In my model I&amp;#039;m mapping the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1665&amp;PID=6276#6276</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=678" rel="nofollow">bebe</a><br /><strong>Subject:</strong> 1665<br /><strong>Posted:</strong> 02-Mar-2010 at 8:28am<br /><br />In my model I'm mapping the update function to a stored procedure.<br><br>I assumed updating data via DevForce EntityManager would result in the same update statements as updating the data directly with EF. But it's not. <br>Have a look at this code and the generated update statements as comments:<br><font color="#006600"><br><font face="Courier New, Courier, mono">&nbsp;<font color="#009900">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //use EF to update data</font></font></font><font face="Courier New, Courier, mono"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; using (var ctx = new Model.testEntities())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var t1 = ctx.Tests.First();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t1.Value1 = "new value x";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ctx.SaveChanges();&nbsp;</font><font color="#009900" face="Courier New, Courier, mono"> // --&gt;&nbsp;&nbsp; exec &#091;dbo&#093;.&#091;procTestUpdate&#093; @ID=1,@value1='new value x',@value2='value2',@valueInt=1,@valueDate='2010-01-01 00:00:00</font><font face="Courier New, Courier, mono">'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#006600" face="Courier New, Courier, mono"> <font color="#009900">//use DevForce to update data</font></font><font face="Courier New, Courier, mono"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var manager = DomainModel.DomainModelEntityManager.DefaultManager;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var t2 = manager.Tests.First();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t2.Value1 = "new value y";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; manager.SaveChanges();&nbsp; </font><font color="#006600" face="Courier New, Courier, mono">// <font color="#009900">--&gt; exec &#091;dbo&#093;.&#091;procTestUpdate&#093; @ID=1,@value1='new value y',@value2=NULL,@valueInt=0,@valueDate='0001-01-01 00:00:00'</font></font> <br><br>In EF all values are passed to the stored procedure, regardless whether their value changed or not. Using DevForce only the values of the changed properties are passed and the others are null or default.<br><br>Is it posible to change this behavior? Is there any documentation and best practice about writing update procedures in "devforce style"?<br><br><br>]]>
   </description>
   <pubDate>Tue, 02 Mar 2010 08:28:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1665&amp;PID=6276#6276</guid>
  </item> 
 </channel>
</rss>