Print Page | Close Window

Dynamic DataSourceKeyResolver only works some of the time

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=276
Printed Date: 23-Jan-2026 at 1:45pm


Topic: Dynamic DataSourceKeyResolver only works some of the time
Posted By: Customer
Subject: Dynamic DataSourceKeyResolver only works some of the time
Date Posted: 16-Jul-2007 at 12:03pm
How come the Dynamic DataSourceKeyResolver only works some of the time?



Replies:
Posted By: IdeaBlade
Date Posted: 16-Jul-2007 at 12:06pm
Only the first call to DataSourceKeyResolver actually calls any custom code.  After that, the cached result is used. You can organize your code to make use of this fact.  The key is to make sure that the connection string is retrieved on the first call to the DataSourceKeyResolver.


Posted By: vkh75
Date Posted: 05-Jan-2008 at 2:22pm
Originally posted by IdeaBlade

Only the first call to DataSourceKeyResolver actually calls any custom code.  After that, the cached result is used.
 
Is there any way to clear this cached result other than restarting an application?


Posted By: davidklitzke
Date Posted: 08-Jan-2008 at 2:13pm
There is no way to clear the cached result.



Print Page | Close Window