We use the following services, which are declared in the Web.config
.
- AspNetSqlMembershipProvider
- AspNetSqlProfileProvider
- AspNetSqlRoleProvider
We are using EntityFramework, and now have a requirement to programmatically set the connection string (it is fetched from the deployment environment, so Web.config
cannot be used).
The question is, how can we continue to use these Providers, but have a programatic connection string?
We do not want to maintain multiple configs, and we do not want to leave credentials in the Web.config
.
Thanks!