Getting VS 2008 & mysql to play nicely!
I love linq!
But getting mysql to place nicely isn’t so straight forward. To get mysql running on .net 3.5 or 4.0 I had to do the following:
1. Install the mysql .net connector
2. Add the MySQL Data Provider line in the DbProviderFactories to your machine.config file:
<system.data>
<DbProviderFactories>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.1.0.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
</DbProviderFactories> </system.data>
(see here for more information)
3. Restart Visual Studio
4. Add your models and go nuts!
This Stack Overflow question helped
Good luck!
0 Comments