<?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 : Multi database support in tenanted scenario</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Multi database support in tenanted scenario</description>
  <pubDate>Sun, 12 Apr 2026 01:35:11 -700</pubDate>
  <lastBuildDate>Wed, 21 Jul 2010 17:34:35 -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=1978</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>Multi database support in tenanted scenario : The error you&amp;#039;re seeing is...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1978&amp;PID=7735#7735</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> 1978<br /><strong>Posted:</strong> 21-Jul-2010 at 5:34pm<br /><br />The error you're seeing is due to a bug in version 6.0.3.1 with decrypting session bundles from another EnityServer.&nbsp; There's an EntityServer for every data source extension, so the attempt to use the credentials from the first EntityManager/EntityServer fails&nbsp;with the second EntityManager/EntityServer for the new data source extension.&nbsp;&nbsp; This problem was fixed in version 6.0.4.0, which should be available for download tomorrow.]]>
   </description>
   <pubDate>Wed, 21 Jul 2010 17:34:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1978&amp;PID=7735#7735</guid>
  </item> 
  <item>
   <title>Multi database support in tenanted scenario : I have tried this before...  ok,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1978&amp;PID=7732#7732</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=857" rel="nofollow">sarmaad</a><br /><strong>Subject:</strong> 1978<br /><strong>Posted:</strong> 21-Jul-2010 at 5:07pm<br /><br />I have tried this before...<br /><br />ok, let see if we have this right...<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />var pm = new EntityManager();<br />if(pm.Login(loginCred))<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;pm = new EntityManager(pm, true, "UserExtension", EntityServiceOption.UseDefaultService);<br />&nbsp;&nbsp;&nbsp;&nbsp;var p = pm.Products.ToList();<br />}<br /></pre></td></tr></table><br /><br />I received an error "Padding is invalid and cannot be removed." when calling "Products.ToList()"<br />]]>
   </description>
   <pubDate>Wed, 21 Jul 2010 17:07:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1978&amp;PID=7732#7732</guid>
  </item> 
  <item>
   <title>Multi database support in tenanted scenario : If you use one of the EM constructors...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1978&amp;PID=7730#7730</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1978<br /><strong>Posted:</strong> 21-Jul-2010 at 4:42pm<br /><br />If you use one of the EM constructors that takes another EntityManager, you can avoid the redundant login, as the new EM will use the login credentials of the existing one.<br /><br />It is the client app that is logging into the EntityService, so the EM needs to be instantiated (with the appropriate extension) client-side.]]>
   </description>
   <pubDate>Wed, 21 Jul 2010 16:42:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1978&amp;PID=7730#7730</guid>
  </item> 
  <item>
   <title>Multi database support in tenanted scenario : I have two databases.  the first...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1978&amp;PID=7686#7686</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=857" rel="nofollow">sarmaad</a><br /><strong>Subject:</strong> 1978<br /><strong>Posted:</strong> 19-Jul-2010 at 5:26pm<br /><br />I have two databases. <br />the first database holds admin records including user authentication details. the second database(s) holds user specific data.<br /><br />I have two EF Models for each database with the same manager name, tested and working properly. I have implemented (CustomDataSourceKeyResolver) to retrieve connection strings based on the extension keys from admin database. <br /><br />what I need to achieve is...<br /><br />1. instantiate the EntityManager without any extensions (since we don't know the user just yet)<br />2. login and retrieve the user's extension key.<br />3. re-instantiate the manager with the specific extention..<br /><br />I have implemented the above, but my question is... is there a better way to do that. since I re-instantiate the manager, I need to re-login the user... also, I don't feel its done right since the client app need to pass the extension key... can we implement this at the server side, rather than the client?<br /><br />ultimately, i only need to login the user from the client, and the data connection string will be passed to client for the second database...<br /><br />thoughts...<br /><br />thanks  ]]>
   </description>
   <pubDate>Mon, 19 Jul 2010 17:26:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1978&amp;PID=7686#7686</guid>
  </item> 
 </channel>
</rss>