OK, this is slightly annoying
-
DbConnection.ConnectionString, the getter strips off the password. Understandable, but slightly annoying because it was just easier to get the whole connection string from the connection object. Don't ask. I won't tell. ;) Marc
-
DbConnection.ConnectionString, the getter strips off the password. Understandable, but slightly annoying because it was just easier to get the whole connection string from the connection object. Don't ask. I won't tell. ;) Marc
Seems easy enough:
var cs = (new SqlConnectionStringBuilder { ConnectionString = DbConnection.ConnectionString, Password = "" }).ConnectionString;
But you'll have to either store or ask for the password again.
-
DbConnection.ConnectionString, the getter strips off the password. Understandable, but slightly annoying because it was just easier to get the whole connection string from the connection object. Don't ask. I won't tell. ;) Marc
Persist Security Info = True\False ?