<?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 : Saving a single row</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Saving a single row</description>
  <pubDate>Wed, 10 Jun 2026 17:29:45 -700</pubDate>
  <lastBuildDate>Wed, 08 Sep 2010 18:26:59 -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=2131</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>Saving a single row : Thanks for the help Mark. You&amp;#039;ve...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2131&amp;PID=8407#8407</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 2131<br /><strong>Posted:</strong> 08-Sep-2010 at 6:26pm<br /><br />Thanks for the help Mark.&nbsp; You've always been great!<DIV></DIV>]]>
   </description>
   <pubDate>Wed, 08 Sep 2010 18:26:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2131&amp;PID=8407#8407</guid>
  </item> 
  <item>
   <title>Saving a single row : Yip, that worked. It just never...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2131&amp;PID=8397#8397</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=924" rel="nofollow">xkubr</a><br /><strong>Subject:</strong> 2131<br /><strong>Posted:</strong> 08-Sep-2010 at 6:15am<br /><br />Yip, that worked. It just never occurred to me to have to create and pass in a list with a single item in order to save just 1 row.<br /><br />Thank you.]]>
   </description>
   <pubDate>Wed, 08 Sep 2010 06:15:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2131&amp;PID=8397#8397</guid>
  </item> 
  <item>
   <title>Saving a single row : Can you not write a method such...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2131&amp;PID=8387#8387</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2131<br /><strong>Posted:</strong> 07-Sep-2010 at 2:40pm<br /><br />Can you not write a method such as this? <br><br>public static class EntityManagerExtensions<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static SaveResult SaveSingle(this DomainModelEntityManager manager, object row)<br>&nbsp;&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;&nbsp; return manager.SaveChanges(new object() {row});<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>}<br><br>or even<br><br>public static class EntityExtensions<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static SaveResult SaveChanges(this IdeaBlade.EntityModel.Entity entity, object row)<br>&nbsp;&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;&nbsp; return entity.EntityAspect.EntityManager.SaveChanges(new object() {row});<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>}<br><br>Now you call row.SaveChanges() or manager.SaveSingle(row)<br>]]>
   </description>
   <pubDate>Tue, 07 Sep 2010 14:40:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2131&amp;PID=8387#8387</guid>
  </item> 
  <item>
   <title>Saving a single row : Thank you for your post\reply.  We...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2131&amp;PID=8377#8377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=924" rel="nofollow">xkubr</a><br /><strong>Subject:</strong> 2131<br /><strong>Posted:</strong> 07-Sep-2010 at 2:22am<br /><br />Thank you for your post\reply.<br /><br />We had considered this strategy already and it does not fit well with our requirements. Saving a single object\row from the collection using this method requires a separate list to be created. What we are looking for is a Save method exposed that accepts either a single object or the existing list and the index of the object to save. In the scenario I describe above this would allow for one row to be saved (updated) and any other rows (that may also have changes pending) are left unsaved. This is (unfortunately) a fairly strict business requirement.<br /><br />Any thought or comments pls feel free to post them.]]>
   </description>
   <pubDate>Tue, 07 Sep 2010 02:22:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2131&amp;PID=8377#8377</guid>
  </item> 
  <item>
   <title>Saving a single row : If you only add the entity you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2131&amp;PID=8376#8376</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 2131<br /><strong>Posted:</strong> 06-Sep-2010 at 5:47pm<br /><br />If you only add the entity you are working with to the list, and then pass that to SaveChanges, it will only save one, not everything.]]>
   </description>
   <pubDate>Mon, 06 Sep 2010 17:47:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2131&amp;PID=8376#8376</guid>
  </item> 
  <item>
   <title>Saving a single row : I have just started working with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2131&amp;PID=8368#8368</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=924" rel="nofollow">xkubr</a><br /><strong>Subject:</strong> 2131<br /><strong>Posted:</strong> 06-Sep-2010 at 1:06am<br /><br />I have just started working with DevForce 2010 so this question may be obvious to those with experience using this product. My question is simply: How do I save a single row in the database? I have a table (Ticket) that has been modeled along with all related tables. In my app the user has selected a row in a grid and made changes to the values. The user may have changed values for several rows in the grid but only needs to save one of the rows, not the entire "dataset". <br /><br />I have implemented the Manager.SaveChanges, passing in an IEnumerable of Tickets but this saves all the row changes. The app is WPF, Windows, .Net 4.0, MVVM using a standard datagrid.<br /><br />Can someone give me a pointer in the right direction?<br /><br />Thanks.]]>
   </description>
   <pubDate>Mon, 06 Sep 2010 01:06:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2131&amp;PID=8368#8368</guid>
  </item> 
 </channel>
</rss>