Reputation: 3529
I've been looking around for a definitive answer as to how to use LINQ to SQL with mySQL but can't seem to come up with anything. Does anyone have any experience / suggestions using the two together? In particular, I would like to avoid using string SQL statements.
Cheers
Upvotes: 6
Views: 8496
Reputation: 31161
Now (as of 2015) you can use the Connector/NET provided by MySQL.
http://dev.mysql.com/doc/connector-net/en/connector-net-tutorials.html
Upvotes: 0
Reputation: 11855
MySQL isn't directly supported by Microsoft's LINQ to SQL provider, but there are several alternative ways you can use LINQ against MySQL. Take a look at using LINQ to nHibernate, or see here for LINQ providers against non-Microsoft databases.
Upvotes: 4