Page 1 of 1

Set ConnectionString looking for

Posted: Thu 13 Sep 2012 09:51
by lc4pro
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

Re: Set ConnectionString looking for

Posted: Tue 18 Sep 2012 16:06
by Shalex
lc4pro wrote:it would be very nice if we can set the name of a connection string looking for in the web.config
As we understood, there should be an option in a standalone Entity Developer to set only the name of a connection string in the constructor of DataContext. And you will add the corresponding connection string into the *.config file of your application manually afterwards. Is this correct?

Re: Set ConnectionString looking for

Posted: Wed 19 Sep 2012 10:10
by lc4pro
Correct!

Re: Set ConnectionString looking for

Posted: Wed 26 Sep 2012 16:30
by Shalex
Starting from the next build of Entity Developer, the behaviour will be changed: the "Save connection string in App.Config as" option will be available in a standalone Entity Developer (the entry to App.Config must be added manually afterwards). We will post here when the corresponding build of Entity Developer is available for download.

Re: Set ConnectionString looking for

Posted: Wed 26 Sep 2012 16:33
by lc4pro
Fantastic!

Your support is great!!

Re: Set ConnectionString looking for

Posted: Thu 04 Oct 2012 15:53
by Shalex
New version of Entity Developer 4.7 is released!
It can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=32&t=25013.