I need to query a MySQL database from my C# ASP.NET MVC 3 application, and I figure it’s best done via Linq. I’m not sure how it’s done however, my current impression is that only Microsoft SQL is directly supported by Linq. So how can I query MySQL via Linq in the ASP.NET MVC 3 context (in C#)?
EDIT:
Note I would definitely prefer that any dependencies were installable with NuGet, as all my current dependencies are installed this way.
You could also use SauceDB, it has support for sql server, sqlite, postgre, and mysql. Among other feature it does support linq style queries.
http://sauce.codeplex.com
Disclamer: I Wrote it.