connectionStrings inside web.config

Posts   
 
    
Developer
User
Posts: 58
Joined: 05-May-2004
# Posted on: 02-Jun-2006 12:08:27   

Hi Otis,

Would it be possible to define database connection string in <connectionStrings /> section, rather than <appSettings /> inside web.config? It would be good to define standard .NET v2.0 format.

I love version LLBLGen v2.0 improvements.... The best code generator tool in the world. smile

Regards.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 02-Jun-2006 12:38:47   

Developer wrote:

Hi Otis, Would it be possible to define database connection string in <connectionStrings /> section, rather than <appSettings /> inside web.config? It would be good to define standard .NET v2.0 format.

It's ASP.NET specific if I'm not mistaken. (I couldnt find any info on this for normal apps) I couldn't get it to work with winforms unless I'd include web code which isn't exactly what I wanted in a DAL. The appSettings section works in both and because the ormsupportclasses can be used in web and winforms, console apps and services etc., it's not that good to tie it to asp.net with specific code. wink So I sticked with the appSettings section.

I love version LLBLGen v2.0 improvements.... The best code generator tool in the world. smile Regards.

Thanks! smile

Frans Bouma | Lead developer LLBLGen Pro
Developer
User
Posts: 58
Joined: 05-May-2004
# Posted on: 02-Jun-2006 13:05:56   

Hi Otis,

ConnectionStrings is available inside web.config and app.config as well. http://codebetter.com/blogs/john.papa/archive/2005/10/07/132852.aspx

Thanks for quick response.

Regards.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 02-Jun-2006 13:47:31   

Ah thanks, will look into it simple_smile

Frans Bouma | Lead developer LLBLGen Pro