<?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 : Fake Backing Store</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Fake Backing Store</description>
  <pubDate>Sat, 11 Apr 2026 11:55:09 -700</pubDate>
  <lastBuildDate>Thu, 10 May 2012 13:27:55 -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=3434</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>Fake Backing Store : Cocktail 0.6 doesn&amp;#039;t work...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13564#13564</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> 3434<br /><strong>Posted:</strong> 10-May-2012 at 1:27pm<br /><br />Cocktail 0.6 doesn't work with 6.1.6 at least not fully. The system requirements do state that you need 6.1.7. First of all the binaries are built against 6.1.7 and you'll get into conflicts eventually if you try to use&nbsp;them against 6.1.6. It may seem to work up to a certain point. Second, the latest Cocktail relies on bug fixes in 6.1.7. ]]>
   </description>
   <pubDate>Thu, 10 May 2012 13:27:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13564#13564</guid>
  </item> 
  <item>
   <title>Fake Backing Store : I&amp;#039;m using 6.1.6 at the moment....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13563#13563</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> 3434<br /><strong>Posted:</strong> 10-May-2012 at 12:34pm<br /><br />I'm using 6.1.6 at the moment. I ended up making a new project and all seems to work... No idea what the problem was.]]>
   </description>
   <pubDate>Thu, 10 May 2012 12:34:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13563#13563</guid>
  </item> 
  <item>
   <title>Fake Backing Store : How is your EnityManager being...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13561#13561</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> 3434<br /><strong>Posted:</strong> 10-May-2012 at 10:20am<br /><br />How is your EnityManager being created? The latest TempHire uses an unmodified EntityManagerProvider and the out-of-the-box fake ConnectionOptions:<DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;Export&#093;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">public</SPAN> IEntityManagerProvider&lt;TempHireEntities&gt; TempHireEntityManagerProvider<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">get</SPAN><BR>&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; <SPAN style="COLOR: blue">var</SPAN> provider = <SPAN style="COLOR: blue">new</SPAN> EntityManagerProvider&lt;TempHireEntities&gt;();<BR><SPAN style="COLOR: blue">#if</SPAN> FAKESTORE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; provider.Configure(config =&gt; config.WithConnectionOptions(ConnectionOptions.Fake.Name));<BR><SPAN style="COLOR: blue">#endif</SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">return</SPAN> provider;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR><BR></DIV><DIV>Then on the server it injects the FakeLoginManager into the existing fake CompositionContext:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">public</SPAN> <SPAN style="COLOR: blue">class</SPAN> CompositionContextResolver : ICompositionContextResolver<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">private</SPAN> <SPAN style="COLOR: blue">static</SPAN> <SPAN style="COLOR: blue">readonly</SPAN> CompositionContext TempHireFake = CompositionContext.Fake<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .WithGenerator(<SPAN style="COLOR: blue">typeof</SPAN>(FakeLoginManager))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .WithName(CompositionContext.Fake.Name);<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">#region</SPAN> ICompositionContextResolver Members<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">public</SPAN> CompositionContext GetCompositionContext(<SPAN style="COLOR: blue">string</SPAN> compositionContextName)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: green">// Overwriting the default fake composition context.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">if</SPAN> (compositionContextName == CompositionContext.Fake.Name)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">return</SPAN> TempHireFake;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">return</SPAN> <SPAN style="COLOR: blue">null</SPAN>;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: blue">#endregion</SPAN><BR>&nbsp;&nbsp;&nbsp; }<BR></DIV><DIV>Thanks to a bug fix in DF 6.1.7, this much simpler approach now works n-tier as well, if you just want to add a few things to an existing out-of-the-box CompositionContext. </DIV><DIV>&nbsp;</DIV><DIV>What's different in your app? Perhaps the bug fix had an unintentended side effect. Are you hooking into any EM events outside of the EntityManagerDelegate?</DIV>]]>
   </description>
   <pubDate>Thu, 10 May 2012 10:20:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13561#13561</guid>
  </item> 
  <item>
   <title>Fake Backing Store : Yes, it appears to work fine in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13560#13560</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> 3434<br /><strong>Posted:</strong> 10-May-2012 at 9:02am<br /><br />Yes, it appears to work fine in TempHire (I upgraded TempHire to SL5 to make sure both are using the exact same environment)<br><br><br>]]>
   </description>
   <pubDate>Thu, 10 May 2012 09:02:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13560#13560</guid>
  </item> 
  <item>
   <title>Fake Backing Store : That&amp;#039;s odd. I assume TempHire...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13559#13559</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> 3434<br /><strong>Posted:</strong> 09-May-2012 at 3:31pm<br /><br />That's odd. I assume TempHire works on your machine?]]>
   </description>
   <pubDate>Wed, 09 May 2012 15:31:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13559#13559</guid>
  </item> 
  <item>
   <title>Fake Backing Store : That is the entire bootstrapper,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13558#13558</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> 3434<br /><strong>Posted:</strong> 09-May-2012 at 3:22pm<br /><br />That is the entire bootstrapper, copied from TempHire. I can set a breakpoint on connect and it hits ConnectAsync in ResetCore but it never hits Store.ClearAsync()<br><br>I also tested this without the fake store and it is connecting just fine.<br><br><br>]]>
   </description>
   <pubDate>Wed, 09 May 2012 15:22:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13558#13558</guid>
  </item> 
  <item>
   <title>Fake Backing Store : Is the above your entire bootstrapper?...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13557#13557</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> 3434<br /><strong>Posted:</strong> 09-May-2012 at 3:20pm<br /><br />Is the above your entire bootstrapper? StartRuntimeAsync is called from StartRuntime. Are you doing anything in StartRuntime? ]]>
   </description>
   <pubDate>Wed, 09 May 2012 15:20:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13557#13557</guid>
  </item> 
  <item>
   <title>Fake Backing Store : I&amp;#039;m not sure how that could...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13556#13556</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> 3434<br /><strong>Posted:</strong> 09-May-2012 at 3:11pm<br /><br />I'm not sure how that could be possible as this is being called from the bootstrapper, before anything else has happened.]]>
   </description>
   <pubDate>Wed, 09 May 2012 15:11:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13556#13556</guid>
  </item> 
  <item>
   <title>Fake Backing Store : My first instinct is your UI thread...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13555#13555</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> 3434<br /><strong>Posted:</strong> 09-May-2012 at 3:07pm<br /><br /><P>My first instinct is your UI thread might be blocked, so the callback can't be processed. </P>]]>
   </description>
   <pubDate>Wed, 09 May 2012 15:07:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13555#13555</guid>
  </item> 
  <item>
   <title>Fake Backing Store : I&amp;#039;ve just upgraded a project...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13552#13552</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> 3434<br /><strong>Posted:</strong> 09-May-2012 at 1:17pm<br /><br />I've just upgraded a project to the latest cocktail and I'm having issues getting the fake backing store to work<br><br><pre style="font-family:C&#111;nsolas;font-size:13;color:black;:white;">&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:blue;">class</span>&nbsp;<span style="color:#2b91af;">AppBootstrapper</span>&nbsp;:&nbsp;<span style="color:#2b91af;">FrameworkBootstrapper</span>&lt;<span style="color:#2b91af;">ShellViewModel</span>&gt;&nbsp;&nbsp;&nbsp;&nbsp;{<span style="color:blue;">#if</span>&nbsp;FAKESTORE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#091;<span style="color:#2b91af;">Import</span>&#093;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">public</span>&nbsp;<span style="color:#2b91af;">IEntityManagerProvider</span>&lt;<span style="color:#2b91af;">VITEntities</span>&gt;&nbsp;EntityManagerProvider; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">protected</span>&nbsp;<span style="color:blue;">override</span>&nbsp;<span style="color:#2b91af;">IEnumerable</span>&lt;<span style="color:#2b91af;">IResult</span>&gt;&nbsp;StartRuntimeAsync()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:blue;">yield</span>&nbsp;<span style="color:blue;">return</span>&nbsp;EntityManagerProvider.InitializeFakeBackingStoreAsync();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<span style="color:blue;">#endif</span> &nbsp;&nbsp;&nbsp;&nbsp;}<br><br>InitializeFakeBackingStoreAsync() never completes. I've traced it down to FakeBackingStore.ResetCore. <br><br>I'm not getting any errors whatsoever, it just doesn't return, so the shell doesn't show. Any suggestions on what I can try?<br></pre>]]>
   </description>
   <pubDate>Wed, 09 May 2012 13:17:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3434&amp;PID=13552#13552</guid>
  </item> 
 </channel>
</rss>