<?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 : Update multiple records</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Update multiple records</description>
  <pubDate>Mon, 13 Apr 2026 12:29:24 -700</pubDate>
  <lastBuildDate>Wed, 18 May 2011 23:54:20 -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=2696</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>Update multiple records : Hello Sbelini,Thanks alot..it...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2696&amp;PID=10754#10754</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1159" rel="nofollow">new user</a><br /><strong>Subject:</strong> 2696<br /><strong>Posted:</strong> 18-May-2011 at 11:54pm<br /><br />Hello Sbelini,<br><br>Thanks alot..it is worked for me...:)<br><br>Thanks once again...<br>]]>
   </description>
   <pubDate>Wed, 18 May 2011 23:54:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2696&amp;PID=10754#10754</guid>
  </item> 
  <item>
   <title>Update multiple records : Hi,  If you already have an...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2696&amp;PID=10742#10742</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2696<br /><strong>Posted:</strong> 18-May-2011 at 10:08am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>If you already have an ObservableCollection of Employees, why are you requerying one at time again?</DIV><DIV>Also, you don't need to call SaveChagesAsync to each Employee.</DIV><DIV>&nbsp;</DIV><DIV>Try this instead:</DIV><DIV>&nbsp;</DIV><DIV>foreach (Employee emp in SelectedEmployees)//where 'SelectedEmployees' is a observablecollection of type 'Employee'<BR>{<BR>&nbsp; emp.EmpName =&nbsp;"new name";<BR>}</DIV><DIV>manager.SaveChangesAsync();<BR></DIV><DIV>Silvio.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 18 May 2011 10:08:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2696&amp;PID=10742#10742</guid>
  </item> 
  <item>
   <title>Update multiple records : Hello friends,My requirement is...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2696&amp;PID=10741#10741</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1159" rel="nofollow">new user</a><br /><strong>Subject:</strong> 2696<br /><strong>Posted:</strong> 18-May-2011 at 8:35am<br /><br />Hello friends,<br><br>My requirement is to update multiple records in Employee entity using IdeaBlade. I have tried following code snippet. But it is updating only one record in Employee entity. Can anyone help me please. Its urgent.<br><br>&nbsp;foreach (Employee emp in SelectedEmployees)//where 'SelectedEmployees' is a observablecollection of type 'Employee'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var emp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sp;&nbsp;&nbsp;&nbsp;&nbsp; manager.SaveChangesAsync();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;]]>
   </description>
   <pubDate>Wed, 18 May 2011 08:35:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2696&amp;PID=10741#10741</guid>
  </item> 
 </channel>
</rss>