<?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 : AllInDataSourceAsync with includes</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : AllInDataSourceAsync with includes</description>
  <pubDate>Fri, 10 Apr 2026 19:11:21 -700</pubDate>
  <lastBuildDate>Thu, 02 May 2013 14:33:18 -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=4132</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>AllInDataSourceAsync with includes : I got it!Thank you very much Marcel....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4132&amp;PID=16286#16286</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1485" rel="nofollow">cefernan</a><br /><strong>Subject:</strong> 4132<br /><strong>Posted:</strong> 02-May-2013 at 2:33pm<br /><br />I got it!<div><br></div><div>Thank you very much Marcel.</div>]]>
   </description>
   <pubDate>Thu, 02 May 2013 14:33:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4132&amp;PID=16286#16286</guid>
  </item> 
  <item>
   <title>AllInDataSourceAsync with includes : This is normal. The deleted entities...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4132&amp;PID=16284#16284</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 4132<br /><strong>Posted:</strong> 02-May-2013 at 12:33pm<br /><br />This is normal. The deleted entities are still in the cache of the first EntityManager. Nothing tells it that those entities got deleted. When you call AllInDataSourceAsync you simply get updated data for the entities that still exist, but the deleted entities remain in the cache, because the EntityManager doesn't just assume they were deleted. You can enable change syncing in Cocktail to inform all EntityManagers of the changes you saved in the second ViewModel. This will remove the deleted entities from every EntityManager that holds a copy in its cache.&nbsp;<div><br></div><div><a href="http://drc.ideablade.com/devforce-2012/bin/view/&#068;ocumentati&#111;n/cocktail-entitymanager-provider#HSynchr&#111;nizingchanges" target="_blank">http://drc.ideablade.com/devforce-2012/bin/view/Documentation/cocktail-entitymanager-provider#HSynchronizingchanges</a></div><div><br></div><div>As an alternative to the example in the documentation, consider the implementation in TempHire. In addition to the example in the doc, the TempHire implementation also handles the case where in your example you add new entities to the SomethingProperties and want them to appear in the first EntityManager.</div><div><br></div><div><a href="https://github.com/IdeaBlade/Cocktail/blob/master/Samples/TempHire/TempHire/SyncInterceptor.cs" target="_blank">https://github.com/IdeaBlade/Cocktail/blob/master/Samples/TempHire/TempHire/SyncInterceptor.cs</a></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 02 May 2013 12:33:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4132&amp;PID=16284#16284</guid>
  </item> 
  <item>
   <title>AllInDataSourceAsync with includes : If I explicity do this below in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4132&amp;PID=16283#16283</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1485" rel="nofollow">cefernan</a><br /><strong>Subject:</strong> 4132<br /><strong>Posted:</strong> 02-May-2013 at 6:46am<br /><br />If I explicity do this below in the first entity manager before call LoadData, <i>SomethingProperties </i>is updated correctly.<div><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial initial; -repeat: initial initial;">UnitOfWork.EntityManager.Clear();</pre></div><div><span style="line-height: 1.4;">Is it ok?</span></div>]]>
   </description>
   <pubDate>Thu, 02 May 2013 06:46:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4132&amp;PID=16283#16283</guid>
  </item> 
  <item>
   <title>AllInDataSourceAsync with includes : Hi guys,Let me try to explain...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4132&amp;PID=16271#16271</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1485" rel="nofollow">cefernan</a><br /><strong>Subject:</strong> 4132<br /><strong>Posted:</strong> 30-Apr-2013 at 12:32pm<br /><br />Hi guys,<div><br></div><div>Let me try to explain my scenario.&nbsp;</div><div><br></div><div>I have two ViewModels working with different unit of works and entity managers.</div><div>In the first one, I have a list of entity loaded using this method:</div><div><pre style="font-family: C&#111;nsolas; font-size: 13px;"><span style="color: blue;">private</span>&nbsp;<span style="color: blue;">async</span>&nbsp;<span style="color: rgb43, 145, 175;">Task</span>&lt;<span style="color: rgb43, 145, 175;">BindableCollection</span>&lt;<span style="color: rgb43, 145, 175;">Something</span>&gt;&gt;&nbsp;LoadData(){ &nbsp;&nbsp;&nbsp;<span style="color: blue;">var</span>&nbsp;repository&nbsp;=&nbsp;UnitOfWork.GetRepository&lt;<span style="color: rgb43, 145, 175; line-height: 1.4;">Something</span><span style="line-height: 1.4;">&gt;();</span><br> &nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">var</span>&nbsp;entityData&nbsp;=&nbsp;<span style="color: blue;">await</span>&nbsp;repository.AllInDataSourceAsync(fetchOptions:&nbsp;f&nbsp;=&gt;&nbsp;f.Include(i&nbsp;=&gt;&nbsp;i.SomethingProperties));&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue;">return</span>&nbsp;<span style="color: blue;">new</span>&nbsp;<span style="color: rgb43, 145, 175;">BindableCollection</span>&lt;<span style="color: rgb43, 145, 175; line-height: 1.4;">Something</span><span style="line-height: 1.4;">&gt;(entityData);</span><br>}</pre></div><div>In this first ViewModel, I have a button that calls the second ViewModel (childWindow). In the second ViewModel I'm able to create, edit or delete data from entity&nbsp;<span style="color: rgb43, 145, 175; line-height: 1.4; font-family: C&#111;nsolas; font-size: 13px;">Something&nbsp;</span><span style="line-height: 1.4;">and&nbsp;</span><span style="color: rgb43, 145, 175; line-height: 1.4; font-family: C&#111;nsolas; font-size: 13px;">SomethingProperties</span><span style="line-height: 1.4;">.</span></div><div>So, when deactivate the childWindow I call LoadData() again to refresh my list. As I use AllInDataSourceAsync the update happens perfectly in the entity&nbsp;<span style="color: rgb43, 145, 175; font-family: C&#111;nsolas; font-size: 13px; line-height: 18px;">Something</span><span style="line-height: 1.4;">, but the navigation (</span><span style="color: rgb43, 145, 175; font-family: C&#111;nsolas; font-size: 13px; line-height: 18px;">SomethingProperties</span><span style="line-height: 1.4;">)&nbsp;</span>shows objects that&nbsp;<span style="line-height: 1.4;">I have deleted&nbsp;</span><span style="line-height: 1.4;">(???) with them that&nbsp;</span><span style="line-height: 1.4;">I have just created</span><span style="line-height: 1.4;">&nbsp;</span><span style="line-height: 1.4;">(ok).</span></div><div><span style="line-height: 1.4;"><br></span></div><div>PS: Before close the childWindow I have saved changes in the second entity manager. If I check the database, it is everything ok.</div><div><br></div><div>What is my mistake?</div><div><br></div>]]>
   </description>
   <pubDate>Tue, 30 Apr 2013 12:32:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4132&amp;PID=16271#16271</guid>
  </item> 
 </channel>
</rss>