<?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 : Switching Connection String at Runtime</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Switching Connection String at Runtime</description>
  <pubDate>Tue, 21 Apr 2026 10:40:12 -700</pubDate>
  <lastBuildDate>Thu, 10 Jun 2010 16:01:31 -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=1860</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>Switching Connection String at Runtime : See the Data folder that accompanies...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7258#7258</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> 1860<br /><strong>Posted:</strong> 10-Jun-2010 at 4:01pm<br /><br />See the Data folder that accompanies the two DataSourceKey solutions. It contains two zips which contain a total of three databases: Tenant, Tomato01, and Tomato02. You need to attach those to your instance of SQL Server.]]>
   </description>
   <pubDate>Thu, 10 Jun 2010 16:01:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7258#7258</guid>
  </item> 
  <item>
   <title>Switching Connection String at Runtime : Do you have any data in that sample...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7255#7255</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=804" rel="nofollow">jmarbutt</a><br /><strong>Subject:</strong> 1860<br /><strong>Posted:</strong> 10-Jun-2010 at 11:34am<br /><br />Do you have any data in that sample app? It appears that I am not building my connection string correctly, I would like to compare what the connection string being past to the ClientEdmKey.<br /><br />I think I just have something slightly off.]]>
   </description>
   <pubDate>Thu, 10 Jun 2010 11:34:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7255#7255</guid>
  </item> 
  <item>
   <title>Switching Connection String at Runtime : You&amp;#039;re right that we&amp;#039;re...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7252#7252</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> 1860<br /><strong>Posted:</strong> 10-Jun-2010 at 11:01am<br /><br />You're right that we're still missing documentation on how DevForce probes for custom implementations.&nbsp; Briefly, we're using MEF (Managed Extensibility Framework) for most probing.&nbsp; When you implement a DevForce interface, or sub-type a base class, that type has been marked with the MEF InheritedExport attribute, which means that when a custom implementation is supplied MEF "should" find it.&nbsp; By default, in a .NET application that discovery will be in the exe/bin folder, and in Silverlight the XAP file.&nbsp; <DIV>&nbsp;</DIV><DIV>As for what's used server-side vs. client side, or both, right now that's usually described in the API Reference Help.&nbsp; There's also more information in the Deployment chapter in the Learning Resources.&nbsp; In the case of the IDataSourceKeyResolver, although you can deploy your custom class to both client and server, it's only on the server that actual connection string resolution is required.</DIV>]]>
   </description>
   <pubDate>Thu, 10 Jun 2010 11:01:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7252#7252</guid>
  </item> 
  <item>
   <title>Switching Connection String at Runtime : Nevermind, I guess it is using...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7251#7251</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=804" rel="nofollow">jmarbutt</a><br /><strong>Subject:</strong> 1860<br /><strong>Posted:</strong> 10-Jun-2010 at 10:30am<br /><br />Nevermind, I guess it is using reflection to do that, pretty cool, but could be better documented about that.]]>
   </description>
   <pubDate>Thu, 10 Jun 2010 10:30:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7251#7251</guid>
  </item> 
  <item>
   <title>Switching Connection String at Runtime : I think my question around this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7250#7250</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=804" rel="nofollow">jmarbutt</a><br /><strong>Subject:</strong> 1860<br /><strong>Posted:</strong> 10-Jun-2010 at 10:23am<br /><br />I think my question around this is how does the EntityManager know how to use the CustomDataSourceKeyResolver? I don't see it assigned any where. ]]>
   </description>
   <pubDate>Thu, 10 Jun 2010 10:23:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7250#7250</guid>
  </item> 
  <item>
   <title>Switching Connection String at Runtime :  Originally posted by DavidKozikowskiThe...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7237#7237</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> 1860<br /><strong>Posted:</strong> 09-Jun-2010 at 5:47pm<br /><br /> <table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by DavidKozikowski</strong></em><br /><br />The info in that section of documentation for DevForce 2010 states "Coming Soon!"</td></tr></table> <br /><br />Maybe we just got it back in there for this release. I was looking at the docs going out with 6.0.3.]]>
   </description>
   <pubDate>Wed, 09 Jun 2010 17:47:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7237#7237</guid>
  </item> 
  <item>
   <title>Switching Connection String at Runtime :  Originally posted by jmarbuttI...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7236#7236</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> 1860<br /><strong>Posted:</strong> 09-Jun-2010 at 5:45pm<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by jmarbutt</strong></em><br /><br />I am wanting to change the connection based on the authenticated user.</td></tr></table> <br /><br />Sure, but I don't understand why you asked this question:<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by jmarbutt</strong></em><br /><br />Does this show how to do it only from the server side of the Silverlight application?</td></tr></table><br /><br />The only place the connection string will be used is server-side.]]>
   </description>
   <pubDate>Wed, 09 Jun 2010 17:45:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7236#7236</guid>
  </item> 
  <item>
   <title>Switching Connection String at Runtime :  Originally posted by GregDIn...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7218#7218</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=672" rel="nofollow">DavidKozikowski</a><br /><strong>Subject:</strong> 1860<br /><strong>Posted:</strong> 09-Jun-2010 at 6:12am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by GregD</strong></em><br /><br />In the Learning Resources, see the material on DataSourceKeys, DataSourceKeyResolvers, and DataSourceExtensions in the <I>Business Object Persistence_Advanced </I>topic document. There are also two Visual Studio solutions that address the topic, both in the folder <I>Learning Resources\040_BusObjPersistence\DataSourceKeys</I>.<BR></td></tr></table> <DIV>&nbsp;</DIV><DIV><P style="MARGIN: 0in 0in 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 13.5pt; mso-ansi-: EN" lang=EN>The info in that section of documentation for DevForce 2010 states "Coming Soon!"</P><DIV>I do need some help / direction on what the App.Config file needs to look like when there are several databases involded. Can you provide a sample App.config file?</DIV><DIV></SPAN>&nbsp;</DIV></DIV>]]>
   </description>
   <pubDate>Wed, 09 Jun 2010 06:12:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7218#7218</guid>
  </item> 
  <item>
   <title>Switching Connection String at Runtime : I am wanting to change the connection...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7213#7213</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=804" rel="nofollow">jmarbutt</a><br /><strong>Subject:</strong> 1860<br /><strong>Posted:</strong> 08-Jun-2010 at 7:12pm<br /><br />I am wanting to change the connection based on the authenticated user.  <br /><br />I am also trying to implement the custom authentication but haven't gotten that working yet either.]]>
   </description>
   <pubDate>Tue, 08 Jun 2010 19:12:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7213#7213</guid>
  </item> 
  <item>
   <title>Switching Connection String at Runtime : Tell me a bit more about what...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7209#7209</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> 1860<br /><strong>Posted:</strong> 08-Jun-2010 at 5:41pm<br /><br />Tell me a bit more about what you're trying to do.]]>
   </description>
   <pubDate>Tue, 08 Jun 2010 17:41:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7209#7209</guid>
  </item> 
  <item>
   <title>Switching Connection String at Runtime : Does this show how to do it only...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7208#7208</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=804" rel="nofollow">jmarbutt</a><br /><strong>Subject:</strong> 1860<br /><strong>Posted:</strong> 08-Jun-2010 at 3:16pm<br /><br />Does this show how to do it only from the server side of the Silverlight application?]]>
   </description>
   <pubDate>Tue, 08 Jun 2010 15:16:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7208#7208</guid>
  </item> 
  <item>
   <title>Switching Connection String at Runtime :   In the Learning Resources,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7177#7177</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> 1860<br /><strong>Posted:</strong> 07-Jun-2010 at 12:20pm<br /><br />In the Learning Resources, see the material on DataSourceKeys, DataSourceKeyResolvers, and DataSourceExtensions in the <i>Business Object Persistence_Advanced </i>topic document. There are also two Visual Studio solutions that address the topic, both in the folder <i>Learning Resources\040_BusObjPersistence\DataSourceKeys</i>.<br><span style="font-size:10px"><br /><br />Edited by GregD - 07-Jun-2010 at 12:21pm</span>]]>
   </description>
   <pubDate>Mon, 07 Jun 2010 12:20:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7177#7177</guid>
  </item> 
  <item>
   <title>Switching Connection String at Runtime : Ok this is just a simple question,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7155#7155</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=804" rel="nofollow">jmarbutt</a><br /><strong>Subject:</strong> 1860<br /><strong>Posted:</strong> 04-Jun-2010 at 11:08pm<br /><br />Ok this is just a simple question, but how do I switch the connection string at run time based on the user login?]]>
   </description>
   <pubDate>Fri, 04 Jun 2010 23:08:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1860&amp;PID=7155#7155</guid>
  </item> 
 </channel>
</rss>