Invalid connection string
Posted: Sat 06 Sep 2014 19:42
I start with the following code:
When the code is executed I get the error "key is not supported 'user id'". I compared the string to the one Entity Developer shows me and they are basically the same.
I also tried this syntax: https://www.connectionstrings.com/mysql/
Am I using the wrong classes here?
Daniel
Code: Select all
var builder = new MySqlConnectionStringBuilder();
builder.Host = "----------";
builder.Port = -----;
builder.UserId = "--------";
builder.Password = "------------";
builder.Direct = true;
builder.Database = "-------";
builder.MaxPoolSize = 10;
builder.ConnectionTimeout = 10;
var conn2 = new Model.Entities(builder.ConnectionString);
I also tried this syntax: https://www.connectionstrings.com/mysql/
Am I using the wrong classes here?
Daniel