Qui peut m'expliquer comment je récupére ma chaine de connection dans ce code car je suis débutant Merci
Code C# : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 /// <summary> /// Gets or sets the name of the connection string. /// </summary> /// <value>The name of the connection string.</value> public string ConnectionStringName { get { return connectionStringName; } set { ConnectionStringSettings con = ConfigurationManager.ConnectionStrings[value]; if (con == null) throw new ConfigurationErrorsException("Could not find connections string named '" + value + "'"); connectionString = con.ConnectionString; connectionStringName = value; } }
Partager