Connection string in app.config in a class library
Posted
by Copeleto
on Stack Overflow
See other posts from Stack Overflow
or by Copeleto
Published on 2010-03-30T21:05:11Z
Indexed on
2010/03/31
1:43 UTC
Read the original article
Hit count: 358
I am creating solution and inside I have three projects:
A WCF Service Library Project
A DataAccess Project (Class Library)
A Web site for hosting WCF service
The implementation of the service is on the project # 1, but in order to access the DataBase I use a second project that implements the data access using a class library project.
That problem is in order to get data access I need to configure a connection string, but that connection string must be configurable in a production environment, I meant in production I am going to deploy the site, which is a very simple project that contains only a reference WCF Service Library Project then a guy from database department will configure the connection string.
In development I have an app.config on the data access project but when I do the release that app.config is embedded on the dll.
Any ideas how can we achieve our purpose
© Stack Overflow or respective owner