<?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 : Repositories in UOW do not work</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Repositories in UOW do not work</description>
  <pubDate>Wed, 10 Jun 2026 05:37:08 -700</pubDate>
  <lastBuildDate>Wed, 31 Jul 2013 14:29:43 -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=4257</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>Repositories in UOW do not work :   Thankyou, yes that was indeed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4257&amp;PID=16680#16680</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=131" rel="nofollow">-ook</a><br /><strong>Subject:</strong> 4257<br /><strong>Posted:</strong> 31-Jul-2013 at 2:29pm<br /><br />Thankyou, yes that was indeed the issue.<div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 31 Jul 2013 14:29:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4257&amp;PID=16680#16680</guid>
  </item> 
  <item>
   <title>Repositories in UOW do not work : Most likely the EntityManagerProvider.ManagerCreated...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4257&amp;PID=16679#16679</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> 4257<br /><strong>Posted:</strong> 30-Jul-2013 at 11:52pm<br /><br />Most likely the EntityManagerProvider.ManagerCreated event gets triggered before the repositories had a chance to install their even handler. Make sure you don't access the Manager property before all the repositories get instantiated.&nbsp;]]>
   </description>
   <pubDate>Tue, 30 Jul 2013 23:52:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4257&amp;PID=16679#16679</guid>
  </item> 
  <item>
   <title>Repositories in UOW do not work :   I have configured a Unit of...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4257&amp;PID=16678#16678</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=131" rel="nofollow">-ook</a><br /><strong>Subject:</strong> 4257<br /><strong>Posted:</strong> 30-Jul-2013 at 11:31pm<br /><br />I have configured a Unit of Work (UOW) class that contains a variety of GlobalCacheRepositories pretty much exactly as per the TempHire reference application.<div>&nbsp;</div><div>I have a GlobalChache class that has been loaded with the data these repositories reference as well (again as per&nbsp;TempHire). </div><div>&nbsp;</div><div>However when I try to obtain&nbsp;data (in the ViewModel) from the UOW repositories 0 records are always returned.&nbsp;As a test I&nbsp;have passed the Global Cache to the function and queries that directly, and records are returned.</div><div>&nbsp;</div><div>e.g.</div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // this will return 0 records<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var issuetreatments = await UnitOfWork.IssueTreatments.AllAsync(q =&gt; q.OrderBy(s =&gt; s.Name));</div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // this will return 5 records (the correct amount)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var issuetreatments2 = cache.Get&lt;IssueTreatement&gt;();</div><div>&nbsp;</div><div>Does anyone have any pointers as to why this would be occuring?</div><div>&nbsp;</div><div>Thanks</div><div>Mark</div>]]>
   </description>
   <pubDate>Tue, 30 Jul 2013 23:31:33 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4257&amp;PID=16678#16678</guid>
  </item> 
 </channel>
</rss>