Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove Connection Strings from app.config
Message
De
16/05/2008 14:41:11
 
 
À
16/05/2008 13:57:45
Dave Nantais
Light speed database solutions
Ontario, Canada
Information générale
Forum:
ASP.NET
Catégorie:
Déploiements
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01317528
Message ID:
01317706
Vues:
8
>>connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=cds;Integrated Security=True"
>
>The master application should pass the connection to the .dll being executed.

Yes, that is how I do it. The DBML however has to know the connection string at design time in order to layout the tables. Unfortunately the designer then either hard codes that information into the class or into the settings file. Even if you never use that connect string in your application.

The problem is that connection strings can sometimes have rather personal information in them such as user names and passwords. I think it is poor design to compile that type of information into your DLLs or distribute it with your app.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform