<?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 : IDataSourceKeyResolver example</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : IDataSourceKeyResolver example</description>
  <pubDate>Tue, 12 May 2026 20:31:54 -700</pubDate>
  <lastBuildDate>Fri, 25 Oct 2013 01:07:14 -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=4573</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>IDataSourceKeyResolver example : I forgot to try common trick against...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4573&amp;PID=17157#17157</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=201" rel="nofollow">vecs</a><br /><strong>Subject:</strong> 4573<br /><strong>Posted:</strong> 25-Oct-2013 at 1:07am<br /><br />&#091;Solved&#093;<br><br>I forgot to try common trick against strange application behavior.<br><br>After computer reboot, application works as expected.<br>]]>
   </description>
   <pubDate>Fri, 25 Oct 2013 01:07:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4573&amp;PID=17157#17157</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver example : Did you unzip and install the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4573&amp;PID=17155#17155</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 4573<br /><strong>Posted:</strong> 24-Oct-2013 at 10:27am<br /><br />Did you unzip and install the databases in the data subfolder?&nbsp;&nbsp; My guess is that the GetConnectionString logic is failing because it can't access the tenant database, as the sample works fine for me.]]>
   </description>
   <pubDate>Thu, 24 Oct 2013 10:27:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4573&amp;PID=17155#17155</guid>
  </item> 
  <item>
   <title>IDataSourceKeyResolver example :  I am thinking of use IDataSourceKeyResolver...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4573&amp;PID=17151#17151</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=201" rel="nofollow">vecs</a><br /><strong>Subject:</strong> 4573<br /><strong>Posted:</strong> 24-Oct-2013 at 4:43am<br /><br />I am thinking of use IDataSourceKeyResolver for dynamic Connection strings handling.<br>I got test solution from here:<br>http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-custom-datasourcekeyresolver<br>but it does not work.<br><br>I have the following situation:<br><br>* ServerModelTomato.Tomato entity have attribute:<br>&#091;IbEm.DataSourceKeyName(@"Tomato")&#093;<br><br>* Console01. Program execute this:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var entityManager = new DomainModelEntityManager(true, "Customer01");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (var tomato in entityManager.Tomatoes) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Console.WriteLine("Tomato {0}", tomato.Variety);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br><br>* During first call to entityManager.Tomatoes, CustomDataSourceKeyResolver.GetKey method invoked <br>and proper 'Tomato_Customer01' ClientEdmKey generated along with proper connection string.<br><br>* Then the error raised:<br><i>The connection string for Key 'Tomato_Customer01' was not found or is invalid.&nbsp; Check that either a connectionStrings element or EdmKey is defined for this key in the configuration file, or implement a custom IDataSourceKeyResolver.<br><br></i>It seems that dynamically created ClientEdmKey was ignored or lost somewhere.<i><br><br></i>Is this a bug or I have missed something?<i><br></i><span style="font-size:10px"><br /><br />Edited by vecs - 24-Oct-2013 at 4:43am</span>]]>
   </description>
   <pubDate>Thu, 24 Oct 2013 04:43:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4573&amp;PID=17151#17151</guid>
  </item> 
 </channel>
</rss>