Set ConnectionString looking for
Posted: Thu 13 Sep 2012 09:51
Hi,
we are useing linq connect in multiple projects and dll's. For the dll's we'r createing the database models with the entity developer. But within the generated classes the connection string with username and password is written into the default constructors. There is the possibility to override the default constructor with a custom connectionstring but it would be very nice if we can set the name of a connection string looking for in the web.config.
I know it is possible because createing the models with the integrated entity developer within visual studio the connection strings are automatically inserted into the web.config.
How can I do this with models from Entity Developer?
Thank for Help
we are useing linq connect in multiple projects and dll's. For the dll's we'r createing the database models with the entity developer. But within the generated classes the connection string with username and password is written into the default constructors. There is the possibility to override the default constructor with a custom connectionstring but it would be very nice if we can set the name of a connection string looking for in the web.config.
I know it is possible because createing the models with the integrated entity developer within visual studio the connection strings are automatically inserted into the web.config.
How can I do this with models from Entity Developer?
Thank for Help