I am experiencing a strange problem, but maybe I'm doing something wrong.
Using the following snippet, if I pass an invalid connection string to my data context, I don't get an exception, nor an indication that the DataContext encountered any problems.
Code: Select all
var ctxt = new MyDataContext(myConnectionString);
ctxt.Connection.Open();
ctxt.Connection.Close();
Code: Select all
var connection = new MySqlConnection(myConnString);
connection.Open();
connection.Close();
Any help would be appreciated.
Thanks,
E.