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
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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.