<?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 : SaveChangesAsync(IEnumerable)??</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : SaveChangesAsync(IEnumerable)??</description>
  <pubDate>Sat, 11 Apr 2026 11:22:16 -700</pubDate>
  <lastBuildDate>Wed, 21 Apr 2010 11:15:19 -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=1730</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>SaveChangesAsync(IEnumerable)?? : Hi Ward, As always you are the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6589#6589</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=441" rel="nofollow">*Calsy</a><br /><strong>Subject:</strong> 1730<br /><strong>Posted:</strong> 21-Apr-2010 at 11:15am<br /><br />Hi Ward, As always you are the oracle. Implemented, tested and works a treat.<DIV>&nbsp;</DIV><DIV>I dont think ive ever heard a C# programmer give props to VB, must have tasted a little weird typing it out i would think.</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Wed, 21 Apr 2010 11:15:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6589#6589</guid>
  </item> 
  <item>
   <title>SaveChangesAsync(IEnumerable)?? : More musings on this subject. Beth...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6585#6585</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> 1730<br /><strong>Posted:</strong> 21-Apr-2010 at 10:36am<br /><br /><P><strong>More musings on this subject.</strong></P><DIV>Beth Massi got me wondering whether the VB compiler or the C# compiler takes the better approach to resolving the ambiguity.</DIV><DIV>&nbsp;</DIV><DIV>I think VB has it right and the C# compiler has made a terrible choice.</DIV><DIV>&nbsp;</DIV><DIV>VB and C# are statically typed languages (primarily). You choose a statically typed language because you want&nbsp;the compiler&nbsp;to tell you about problems or potential problems. The "right" behavior should be guided by this fundamental principle.</DIV><DIV>&nbsp;</DIV><DIV>#2 and #5 are necessarily ambiguous. When the caller presents no parameters other than the IEnumerable, which method should the compiler choose?</DIV><DIV>&nbsp;</DIV><DIV>What if #2 were implemented differently than #5?&nbsp;</DIV><BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr><DIV>In DevForce 2010 today, #2 delegates to #5 with null arguments for the optional params. But it's not hard to imagine changing the default values for #5 someday, subtly breaking the current semantics of #2.</DIV></BLOCKQUOTE><DIV><DIV>The caller has no reason to believe that writing</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp; mgr.SaveChangesAsync(list); // #2</FONT></DIV><DIV>&nbsp;</DIV><DIV>will behave differently than</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp; mgr.SaveChangesAsync(list, null, null, null); // #5</FONT></DIV><DIV>&nbsp;</DIV><DIV>But there's a risk of just that difference. </DIV><DIV>&nbsp;</DIV><DIV>I can't see why anyone would want to write code that took advantage of this difference.</DIV><DIV>&nbsp;</DIV><DIV>Should the developer "just know" that C# picks #2. What's the population of C# developers who could anticipate this&nbsp;problem? The question is rhetorical; we all know the answer: "a handful". </DIV></DIV><DIV>&nbsp;</DIV><DIV>VB forestalls this error. Kudos to VB. Shame on C#.</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by WardBell - 21-Apr-2010 at 10:37am</span>]]>
   </description>
   <pubDate>Wed, 21 Apr 2010 10:36:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6585#6585</guid>
  </item> 
  <item>
   <title>SaveChangesAsync(IEnumerable)?? : Figured out the issue. The cause...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6574#6574</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> 1730<br /><strong>Posted:</strong> 21-Apr-2010 at 12:36am<br /><br />Figured out the issue. The cause is definitely our fault and we will make repairs for the next release (approximately 7 weeks from now). Meanwhile, I have a workaround which I think is not too painful. <DIV>&nbsp;</DIV><DIV><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri><FONT size=+0><FONT color=#000000>What I discovered is that wherever there are two signatures that are the same AFTER REMOVING OPTIONAL PARAMETERS, the VB compiler disallows BOTH. </P><DIV>&nbsp;</DIV><DIV>Our #2 and #5 EntityManager.SaveChangesAsync signatures are the same by VB's reasoning.<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P></O:P></FONT></FONT></FONT></FONT></SPAN></DIV><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><O:P><FONT color=#000000 size=3 face=Calibri>&nbsp;</FONT></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri><FONT size=+0><FONT color=#000000>Deborah Kurata&nbsp;filled me in on the background</FONT></FONT></FONT></FONT></SPAN><O:P></O:P></P><BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr><DIV><SPAN style="COLOR: #1f497d"><O:P><P style="MARGIN: 0in 0in 12pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt"><FONT color=#000000>This is from the C# spec:<BR><BR>"If two candidates are judged to be equally good, preference goes to a candidate that does not have optional parameters for which arguments were omitted in the call. This is a consequence of a general preference in overload resolution for candidates that have fewer parameters."<BR><BR></FONT><a href="http://msdn.microsoft.com/en-us/library/dd264739%28VS.100%29.aspx" target="_blank"><U><FONT size=2 face=Tahoma>http://msdn.microsoft.com/en-us/library/dd264739(VS.100).aspx</FONT></U></A><BR><BR><FONT color=#000000>This is from the VB documentation:<BR><BR>"A procedure with an </FONT><a href="http://msdn.microsoft.com/en-us/library/09yx51zh.aspx" target="_blank"><SPAN style="COLOR: #1364c4"><U><FONT size=2 face=Tahoma>Optional (Visual Basic)</FONT></U></SPAN></A><FONT color=#000000> parameter is equivalent to two overloaded procedures, one with the optional parameter and one without it. You cannot overload such a procedure with a parameter list corresponding to either of these. The following declarations illustrate this."<BR><BR></FONT><a href="http://msdn.microsoft.com/en-us/library/e18yd02w.aspx" target="_blank"><U><FONT size=2 face=Tahoma>http://msdn.microsoft.com/en-us/library/e18yd02w.aspx</FONT></U></A><O:P></O:P></SPAN></P><SPAN style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-: EN-US; mso-fareast-: EN-US; mso-bidi-: AR-SA"><BR><FONT color=#000000>So C# resolves it and VB won't.</FONT><BR style="mso-special-character: line-break"></SPAN>&nbsp;</O:P></SPAN></DIV></BLOCKQUOTE><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><FONT face=Calibri><FONT color=#000000><FONT size=3>Thanks, Deborah! </P><DIV>&nbsp;</DIV><DIV>By the way, if you don't know Deborah ... you should. Here's her signature</FONT></DIV><BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr><DIV><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><FONT size=3>Deborah Kurata</FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><a href="http://www.insteptech.com/" target="_blank"><U><FONT size=3 face=Calibri>Instep Technologies, Inc</FONT></U></A></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><FONT size=3>Blog: </FONT><a href="http://msmvps.com/blogs/DeborahK" target="_blank"><U><FONT size=3 face=Calibri>http://msmvps.com/blogs/DeborahK</FONT></U></A></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><FONT size=3>Co-Chair: East Bay.NET user group</FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><FONT size=3>Microsoft MVP</FONT></SPAN></FONT></FONT></SPAN></O:P></P></DIV></BLOCKQUOTE><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri><FONT size=+0><FONT color=#000000>I have a workaround for VB developers. You must&nbsp;create a C# class library project (if you don’t have one already) and add the following class to it:<O:P></O:P></FONT></FONT></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><O:P><FONT size=3 face=Calibri>&nbsp;</FONT></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt">using</SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"> System;<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt">using</SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"> System.Collections;<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt">namespace</SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"> IdeaBlade.EntityModel {<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp; <SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">static</SPAN> <SPAN style="COLOR: blue">class</SPAN> <SPAN style="COLOR: #2b91af">EntityManagerExtensions</SPAN> {<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">static</SPAN> <SPAN style="COLOR: #2b91af">EntitySaveOperation</SPAN> SaveChangedItemsAsync(<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">this</SPAN> <SPAN style="COLOR: #2b91af">EntityManager</SPAN> manager,<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">IEnumerable</SPAN> entities, <O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">SaveOptions</SPAN> saveOptions = <SPAN style="COLOR: blue">null</SPAN>, <O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">Action</SPAN>&lt;<SPAN style="COLOR: #2b91af">EntitySaveOperation</SPAN>&gt; userCallback = <SPAN style="COLOR: blue">null</SPAN>, <O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">object</SPAN> userState = <SPAN style="COLOR: blue">null</SPAN>) {<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">return</SPAN> manager.SaveChangesAsync(entities, saveOptions, userCallback, userState);<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp; }<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">&nbsp; }<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt">}<O:P></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><O:P>&nbsp;</O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri><FONT color=#000000>You may then write:<O:P></O:P></FONT></FONT></FONT></SPAN></P><P style="MARGIN: 0in 0in 0pt" ="Ms&#111;normal"><SPAN style="COLOR: #1f497d"><O:P><FONT size=3 face=Calibri>&nbsp;</FONT></O:P></SPAN></P><P style="MARGIN: 0in 0in 0pt 0.5in" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: C&#111;nsolas; FONT-SIZE: 12pt">mgr.SaveChangedItemsAsync(changeList)</P><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri><FONT color=#000000><DIV>&nbsp;</DIV><DIV>Sorry for the surprise. Hope this tides you over for now.</FONT></FONT></FONT></SPAN></DIV><O:P></O:P></SPAN></DIV><span style="font-size:10px"><br /><br />Edited by WardBell - 21-Apr-2010 at 12:38am</span>]]>
   </description>
   <pubDate>Wed, 21 Apr 2010 00:36:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6574#6574</guid>
  </item> 
  <item>
   <title>SaveChangesAsync(IEnumerable)?? : For the record, these are the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6568#6568</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> 1730<br /><strong>Posted:</strong> 20-Apr-2010 at 7:22pm<br /><br /><FONT color=#006699>For the record, these are the SaveChangesAsync signatures of EntityManager&nbsp;as confirmed by Reflector.</FONT><DIV></DIV><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT color=#006699 size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.75in; mso-list: l0 level1 lfo1" =MsoListParagraph><SPAN style="mso-fareast-font-family: Calibri"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>(1)</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>Public Function SaveChangesAsync() As EntitySaveOperation</FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.75in; mso-list: l0 level1 lfo1" =MsoListParagraph><SPAN style="mso-fareast-font-family: Calibri"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>(2)</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>Public Function SaveChangesAsync(</FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><FONT size=3 face=Calibri>&nbsp; ByVal entities As IEnumerable) As EntitySaveOperation</FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.75in; mso-list: l0 level1 lfo1" =MsoListParagraph><SPAN style="mso-fareast-font-family: Calibri"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>(3)</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>Public Function SaveChangesAsync(</FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><FONT size=3 face=Calibri>&nbsp; ByVal userCallback As Action(Of EntitySaveOperation), </FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><FONT size=3 face=Calibri>&nbsp; ByVal Optional userState As Object = Nothing) As EntitySaveOperation</FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.75in; mso-list: l0 level1 lfo1" =MsoListParagraph><SPAN style="mso-fareast-font-family: Calibri"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>(4)</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>Public Function SaveChangesAsync(</FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><FONT size=3 face=Calibri>&nbsp; ByVal saveOptions As SaveOptions, </FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><FONT size=3 face=Calibri>&nbsp; ByVal Optional userCallback As Action(Of EntitySaveOperation) = Nothing, </FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><FONT size=3 face=Calibri>&nbsp; ByVal Optional userState As Object = Nothing) As EntitySaveOperation</FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><FONT size=3 face=Calibri>&nbsp;</FONT></P><P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.75in; mso-list: l0 level1 lfo1" =MsoListParagraph><SPAN style="mso-fareast-font-family: Calibri"><SPAN style="mso-list: Ignore"><FONT size=3 face=Calibri>(5)</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT size=3 face=Calibri>Public Function SaveChangesAsync(</FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><FONT size=3 face=Calibri>&nbsp; ByVal entities As IEnumerable, </FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><FONT size=3 face=Calibri>&nbsp; ByVal Optional saveOptions As SaveOptions = Nothing, </FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><FONT size=3 face=Calibri>&nbsp; ByVal Optional userCallback As Action(Of EntitySaveOperation) = Nothing, </FONT></P><P style="MARGIN: 0in 0in 0pt 0.5in" =Ms&#111;normal><FONT size=3 face=Calibri>&nbsp; ByVal Optional userState As Object = Nothing) As EntitySaveOperation</FONT></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><SPAN style="COLOR: #1f497d"><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></SPAN></P><P style="MARGIN: 0in 0in 0pt" =Ms&#111;normal><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri><FONT size=+0>The VB compiler refuses to recognize #2 and #5, the signatures that take IEnumerable as the first parameter<o:p></o:p></FONT></FONT></FONT></SPAN></P>]]>
   </description>
   <pubDate>Tue, 20 Apr 2010 19:22:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6568#6568</guid>
  </item> 
  <item>
   <title>SaveChangesAsync(IEnumerable)?? : Yikes. We are looking to VB experts...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6567#6567</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> 1730<br /><strong>Posted:</strong> 20-Apr-2010 at 7:18pm<br /><br />Yikes.&nbsp; We are looking to VB experts to help us understand why the VB compiler only shows (and compiles) 3 of the 5 SaveChangesAsync signatures. For some reason it will NOT recognize the two with IEnumerable as the first parameter. We hope to solve this mystery soon!]]>
   </description>
   <pubDate>Tue, 20 Apr 2010 19:18:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6567#6567</guid>
  </item> 
  <item>
   <title>SaveChangesAsync(IEnumerable)?? : Hi, Ive tried the following lines...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6564#6564</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=441" rel="nofollow">*Calsy</a><br /><strong>Subject:</strong> 1730<br /><strong>Posted:</strong> 20-Apr-2010 at 4:19pm<br /><br /><DIV>Hi, Ive tried the following lines (obcol = ObservableCollection of entities).</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>************</DIV><DIV><FONT face=C&#111;nsolas color=#2b91af size=2><FONT face=C&#111;nsolas color=#2b91af size=2><FONT face=C&#111;nsolas color=#2b91af size=2><P>mgr</FONT></FONT></FONT><FONT face=C&#111;nsolas size=2><FONT face=C&#111;nsolas size=2>.DefaultManager.SaveChangesAsync(ObCol, </FONT></FONT><FONT face=C&#111;nsolas color=#0000ff size=2><FONT face=C&#111;nsolas color=#0000ff size=2><FONT face=C&#111;nsolas color=#0000ff size=2>AddressOf</FONT></FONT></FONT><FONT face=C&#111;nsolas size=2><FONT face=C&#111;nsolas size=2> UserSaved, </FONT></FONT><FONT face=C&#111;nsolas color=#0000ff size=2><FONT face=C&#111;nsolas color=#0000ff size=2><FONT face=C&#111;nsolas color=#0000ff size=2>Nothing</FONT></FONT></FONT><FONT face=C&#111;nsolas size=2><FONT face=C&#111;nsolas size=2>)</P><DIV>mgr<FONT face=C&#111;nsolas size=2><FONT face=C&#111;nsolas size=2>.DefaultManager.SaveChangesAsync(ObCol, nothing,&nbsp;</FONT></FONT><FONT face=C&#111;nsolas color=#0000ff size=2><FONT face=C&#111;nsolas color=#0000ff size=2><FONT face=C&#111;nsolas color=#0000ff size=2>AddressOf</FONT></FONT></FONT><FONT face=C&#111;nsolas size=2><FONT face=C&#111;nsolas size=2> UserSaved, </FONT></FONT><FONT face=C&#111;nsolas color=#0000ff size=2><FONT face=C&#111;nsolas color=#0000ff size=2><FONT face=C&#111;nsolas color=#0000ff size=2>Nothing</FONT></FONT></FONT><FONT face=C&#111;nsolas size=2><FONT face=C&#111;nsolas size=2>)</FONT></FONT></DIV><DIV><DIV>************</DIV><DIV>&nbsp;</DIV><DIV>But they all error. Ive only got 3 different options for calling SaveChangesAsync in my ObjectBrowser, as follows.</DIV></DIV><DIV></FONT></FONT>&nbsp;</DIV></DIV><DIV>&nbsp;</DIV><DIV><img src="http://www.ideablade.com/forum/uploads/441/&#079;bjectBrowser.Jpg" height="50" width="921" border="0" /></DIV><DIV>&nbsp;</DIV><DIV>None mention anything about IEnumerable.</DIV><DIV>&nbsp;</DIV><DIV>???</DIV>]]>
   </description>
   <pubDate>Tue, 20 Apr 2010 16:19:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6564#6564</guid>
  </item> 
  <item>
   <title>SaveChangesAsync(IEnumerable)?? : So , basically, convert your code...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6561#6561</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> 1730<br /><strong>Posted:</strong> 20-Apr-2010 at 3:55pm<br /><br />So , basically, convert your code from this:<DIV>mgr.SaveChangesAsync(IEnumerable, UserCallback, UserState)</DIV><DIV>&nbsp;</DIV><DIV>To this:</DIV><DIV>mgr.SaveChangesAsync(IEnumerable, null,&nbsp;UserCallback, UserState)</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 20 Apr 2010 15:55:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6561#6561</guid>
  </item> 
  <item>
   <title>SaveChangesAsync(IEnumerable)?? : I&amp;#039;m looking right at it when...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6558#6558</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> 1730<br /><strong>Posted:</strong> 20-Apr-2010 at 3:40pm<br /><br /><P>I'm looking right at it when I examine EntityManager in the VS Object Browser:</P><BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr><DIV><FONT size=2>public </FONT><B><U><FONT color=#0066cc size=2><FONT color=#0066cc size=2>IdeaBlade.EntityModel.EntitySaveOperation</B></U></FONT></FONT><FONT size=2> <B>SaveChangesAsync</B>(</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp; <B><U><FONT color=#0066cc><FONT color=#0066cc>System.Collections.IEnumerable</B></FONT></U></FONT></FONT><FONT size=2> <I>entities</I><B>,</B></FONT></DIV><DIV><FONT size=2><B>&nbsp;&nbsp; &nbsp;</B>&#091;<B><U><FONT color=#0066cc><FONT color=#0066cc>IdeaBlade.EntityModel.SaveOptions</B></FONT></U></FONT></FONT><FONT size=2> <I>saveOptions</I> = null&#093;<B>, </B></FONT></DIV><DIV><FONT size=2><strong>&nbsp;&nbsp;&nbsp; </strong>&#091;<B><U><FONT color=#0066cc><FONT color=#0066cc>System.Action&lt;EntitySaveOperation&gt;</B></FONT></U></FONT></FONT><FONT size=2> <I>userCallback</I> = null&#093;<B>, </B></FONT></DIV><DIV><FONT size=2><strong>&nbsp;&nbsp;&nbsp; </strong>&#091;<B><U><FONT color=#0066cc><FONT color=#0066cc>object</B></FONT></U></FONT></FONT><FONT size=2> <I>userState</I> = null&#093;)</FONT></DIV><P><FONT size=2>Member of <B><U><FONT color=#0066cc><FONT color=#0066cc>IdeaBlade.EntityModel</B></FONT></U></FONT></FONT><FONT size=2>.<FONT color=#0066cc><FONT color=#0066cc><strong><U>EntityManager </P></BLOCKQUOTE><DIV></U></strong><FONT color=#000000>There it is, first parameter, the rest having defaults.</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>And then there is this:<FONT size=2></DIV><BLOCKQUOTE style="MARGIN-RIGHT: 0px" dir=ltr><P>public </FONT><B><U><FONT color=#0066cc size=2><FONT color=#0066cc size=2>IdeaBlade.EntityModel.EntitySaveOperation</B></U></FONT></FONT><FONT size=2> <B>SaveChangesAsync</B>(</FONT><B><U><FONT color=#0066cc size=2><FONT color=#0066cc size=2>System.Collections.IEnumerable</B></U></FONT></FONT><FONT size=2> <I>entities</I>)</P><P>Member of </FONT><B><U><FONT color=#0066cc size=2><FONT color=#0066cc size=2>IdeaBlade.EntityModel</B></U></FONT></FONT><FONT size=2>.</FONT><B><U><FONT color=#0066cc size=2><FONT color=#0066cc size=2>EntityManager</P></BLOCKQUOTE></B></U></FONT></FONT></FONT><DIV>&nbsp;</DIV></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 20 Apr 2010 15:40:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6558#6558</guid>
  </item> 
  <item>
   <title>SaveChangesAsync(IEnumerable)?? : Little Help??? </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6557#6557</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=441" rel="nofollow">*Calsy</a><br /><strong>Subject:</strong> 1730<br /><strong>Posted:</strong> 20-Apr-2010 at 3:31pm<br /><br />Little Help???]]>
   </description>
   <pubDate>Tue, 20 Apr 2010 15:31:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6557#6557</guid>
  </item> 
  <item>
   <title>SaveChangesAsync(IEnumerable)?? : Hi All, Im currently in the process...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6545#6545</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=441" rel="nofollow">*Calsy</a><br /><strong>Subject:</strong> 1730<br /><strong>Posted:</strong> 20-Apr-2010 at 11:53am<br /><br /><P>Hi All, Im currently in the process of doing the convert from 2009 to 2010 and have hit my first little snag.</P><DIV>Just wondering where the SaveChangesAsync with a list of entities has gone? Forgive me if im just having a blonde moment. Or has it been made obsolete. It is still in the help doco. But when in code i only have the following three&nbsp;options:</DIV><DIV>1. mgr.SaveChangesAsync()</DIV><DIV><DIV>2. mgr.SaveChangesAsync(UserCallback, UserState)</DIV><DIV>3. mgr.SaveChangesAsync(SaveOptions.UserCallback, UserState)</DIV><DIV>&nbsp;</DIV><DIV>There aint any mgr.SaveChangesAsync(IEnumerable, UserCallback, UserState)???</DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV></DIV>]]>
   </description>
   <pubDate>Tue, 20 Apr 2010 11:53:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1730&amp;PID=6545#6545</guid>
  </item> 
 </channel>
</rss>