Use appsettings connectionstring instead of connectionStrings in web config for datacontext designer

Posted by bmutch on Stack Overflow See other posts from Stack Overflow or by bmutch
Published on 2010-06-16T15:18:45Z Indexed on 2010/06/16 15:22 UTC
Read the original article Hit count: 273

Filed under:

I need to use the appsettings/key for my connection string in a web project, and want to re-use this for my connectionstring in the datacontext designer, but it seems all I can use there is the web.config's connectionStrings, so I have to have my DB location in 2 places in the web.config, how can I force the designer (dbml) to use the appsettings instead?

© Stack Overflow or respective owner

Related posts about linq-to-sql