How do I properly use LINQ with MySQL? [duplicate]

2019-06-20 22:26发布

问题:

Possible Duplicate:
LINQ to MySQL - what is the best option?

I've been looking this up on Google for hours, but I haven't found anything conclusive. So far, I've seen a few paid options, an option with NHibernate, but most are marked as unstable or in production.

Is there a stable implementation of LINQ for MySQL?

回答1:

LINQ to SQL supports only Microsoft SQL Server. You could use ADO.NET Entity Framework with MySQL. Here's a tutorial.



回答2:

You can try DbLinq. They support MySQL (and Oracle and PostgreSQL).



回答3:

We use Devart dotConnect for Oracle for LINQ-to-Oracle and have been very pleased.

They make an equivalent LINQ-to-MySQL provider as well, I'd definitely give it a look.