how to use LINQ to SQL with mySQL

后端 未结 3 915
我寻月下人不归
我寻月下人不归 2020-12-21 01:45

How to use LINQ to SQL with mySQL.

I am having one project with C# (version 2010) and Linq to SQl. Database is SQl

Need Solution for,

I need to migra

相关标签:
3条回答
  • 2020-12-21 01:54

    I'm pretty sure there is a provider for it (same as for SqlLite).

    Take a look at the following links:

    • http://social.msdn.microsoft.com/Forums/en/linqprojectgeneral/thread/e9fc6bc7-fbc6-44c4-b37b-4b4a83beaa3e

    • http://dev.mysql.com/downloads/connector/net/

    DBLinq should have everything you need though...

    0 讨论(0)
  • 2020-12-21 01:54

    LINQ to SQL is designed to work with Microsoft SQL Server only, as far as I know. If possible, you should migrate to Entity Framework or another DB-agnostic O/R-mapper.

    0 讨论(0)
  • 2020-12-21 02:05

    Check out 'LINQ to MySql' nuget.

    https://www.nuget.org/packages/linq2db.MySql/

    LINQ to MySql is a data access technology that provides a run-time infrastructure for managing relational data as objects.

    This package includes a T4 template to generate data models for MySql database and references to the linq2db and MySql.Data nugets.

    0 讨论(0)
提交回复
热议问题