| 9/18/2005 8:40:02 AM |
Hi all,
I'm using the MySQL ADO.Net Data Provider 1.0.4 to connecto to MySQL and I'm getting a "ObjectSpace: Connection String is Invalid - Specified cast is not valid." error when calling a method on the ObjectSpace object.
Can anyone tell me what's wrong with my connection string?
Thanks,
Francis
string connection = "Database=mydb;host=localhost;port=3306;uid=username;pwd=password;";
CustomProvider provider = new CustomProvider("MySql.Data", "MySql.Data.MySqlClient.MySqlConnection", "MySql.Data.MySqlClient.MySqlDataAdapter"); provider.StartDelimiter = "`"; provider.EndDelimiter = "`"; provider.ParameterPrefix = "?"; provider.IdentityQuery = "SELECT LAST_INSERT_ID()"; provider.SelectPageQuery = "SELECT * LIMIT {0} OFFSET {1}";
mapper = new ObjectSpace(Assembly.GetExecutingAssembly().GetManifestResourceStream("MyNameSpace.Mappings.config"), connection, provider);
|
| 9/19/2005 5:52:00 PM |
MySQL Connector 1.04 is defective, upgrading to MySQL Connector/Net 1.05 solved the problem.
Thanks,
Francis |