In the latest version of Simple.Data (1.0.0-beta2) I am using MySql as my database (version 5.5.2.1). I am using the latest MySql.Data assembly as a provider to connect to the database.
When I try opening a connection to my local MySql database in the following code, I get the exception "Multiple ADO Providers found; specify provider name or remove unwanted assemblies."
public class MyEntityRepository : IMyEntityRepository
{
public MyEntity GetById(int id)
{
var db = Database.OpenConnection("Server=localhost;Port=3306;Database=myDatabase;Uid=root;Pwd=test; provider=MySql.Data");
...
}
}
The only assemblies reference in my project/assembly are the following:
- mysql.data
- Simple.Data
- Simple.Data.Ado
- Simple.Data.MySql.Mysql40
Why is this error occuring?