G
Guest
Hello all - just a spot of advice required.
I'm wanting to write a number of data layers that will be used to carry out
the typical CRUD operations against a database - so 1 database will be linked
to 1 data layer. However, I'm aware that typically the connection
information, such as the connection string, would be retrived from, in our
case, the Web.Config file. This would obviously mean that the user would then
have to know this information, but I'll like to try and make it as "plug and
play" as possible, i.e. add the reference and begin using the data layer
methods.
My question is therefore, where is the best place for these Data Layers to
pick up their connection information? Could/can each layer have it's own
"config" type file?
Thanks for any advice,
Jon
I'm wanting to write a number of data layers that will be used to carry out
the typical CRUD operations against a database - so 1 database will be linked
to 1 data layer. However, I'm aware that typically the connection
information, such as the connection string, would be retrived from, in our
case, the Web.Config file. This would obviously mean that the user would then
have to know this information, but I'll like to try and make it as "plug and
play" as possible, i.e. add the reference and begin using the data layer
methods.
My question is therefore, where is the best place for these Data Layers to
pick up their connection information? Could/can each layer have it's own
"config" type file?
Thanks for any advice,
Jon