D
daokfella
In my solution, I have a project that is my data access layer. This
layer simply consists of strongly-typed datasets created by dragging
tables from the server explorer into the dataset designer. The
connection string that it uses is stored in the My Project folder
under Settings.settings.
My business layer contains objects that consume the data layer to read/
write information...pretty basic. My question is....how do I tell the
data layer to use a different connection string from my web app? I
have a ConnectionStrings group in my ASP.Net web.config that should
always be the one to use...regardless of which database was used to
create the datasets.
How do I accomplish this? Is it simply a matter of making sure the
Name in the Settings.settings file in my DAL is the same as the
connection string in my web.config? In the designer, the type dropdown
says (Connection String) and scope is application. Is 2.0 all set up
so that it will check my application config connection string group
settings first?
Thanks,
Jason
layer simply consists of strongly-typed datasets created by dragging
tables from the server explorer into the dataset designer. The
connection string that it uses is stored in the My Project folder
under Settings.settings.
My business layer contains objects that consume the data layer to read/
write information...pretty basic. My question is....how do I tell the
data layer to use a different connection string from my web app? I
have a ConnectionStrings group in my ASP.Net web.config that should
always be the one to use...regardless of which database was used to
create the datasets.
How do I accomplish this? Is it simply a matter of making sure the
Name in the Settings.settings file in my DAL is the same as the
connection string in my web.config? In the designer, the type dropdown
says (Connection String) and scope is application. Is 2.0 all set up
so that it will check my application config connection string group
settings first?
Thanks,
Jason