开发者

How to connect with multiple DBs in a asp.net web application?

开发者 https://www.devze.com 2023-03-20 08:15 出处:网络
I have a application which validates UserID - UserID 开发者_如何学Cis of 32 digit UID...... i need to validate the UID to find where this user exists in

I have a application which validates UserID - UserID 开发者_如何学Cis of 32 digit UID......

i need to validate the UID to find where this user exists in

database 'A' or 'B' or 'c' or 'D'or 'E'or 'F'

reply me your ideas..

ps: databases may ex-tern at later ....

so i need a dynamic connection string


I would suggest to use the support from a framework like spring.net

I've done this before with that framework. You could declare as many datasources as you need and decide in runtime wich one you should use. Also using this kind of frameworks improves the quality and perfomance of your application.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号