Handling multiple post-defined datasource connections based on user
Posted
by
choudeshell
on Stack Overflow
See other posts from Stack Overflow
or by choudeshell
Published on 2011-01-11T00:48:17Z
Indexed on
2011/01/11
0:53 UTC
Read the original article
Hit count: 142
How should I handle multiple user-connection defined datasource connection in my .NET application? To illustrate this better; the user provides three (3) pieces of information, username, password and data source name. This data source name is then looked-up in a central database telling that application which main database this user should connect to.
My question is, in the DataAccess layer, should we only pass down enough information to uniquely identify that user, and query the central database each time in the DAL; or, should we provide another way to pass the datasource connection down to the DAL?
© Stack Overflow or respective owner