Set ConnectionString looking for

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
lc4pro
Posts: 51
Joined: Thu 12 Jul 2012 08:16

Set ConnectionString looking for

Post by lc4pro » 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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Set ConnectionString looking for

Post by Shalex » Tue 18 Sep 2012 16:06

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?

lc4pro
Posts: 51
Joined: Thu 12 Jul 2012 08:16

Re: Set ConnectionString looking for

Post by lc4pro » Wed 19 Sep 2012 10:10

Correct!

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Set ConnectionString looking for

Post by Shalex » Wed 26 Sep 2012 16:30

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.

lc4pro
Posts: 51
Joined: Thu 12 Jul 2012 08:16

Re: Set ConnectionString looking for

Post by lc4pro » Wed 26 Sep 2012 16:33

Fantastic!

Your support is great!!

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Set ConnectionString looking for

Post by Shalex » Thu 04 Oct 2012 15:53

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.

Post Reply