.Net Core MySql

后端 未结 2 903
予麋鹿
予麋鹿 2020-12-18 01:42

I\'ve just started coding in Visual Studio Code with .NET Core, on Ubuntu 14.04.4 I\'m used to both using Ubuntu (from personal interests, hobby, etc) and .NET and Visual St

相关标签:
2条回答
  • 2020-12-18 01:49

    At the time of this question (Mar 2016) there was no .NET Core-compatible ADO.NET provider for MySQL.

    Now situation is changed:

    • MySqlConnector written by Bradley Grainger -- licensed under MIT, and offers full async support
    • MySql.Data (>6.10) provided by Oracle (traditionally, GPL)

    Personally I prefer MySqlConnector -- it can be used in commercial projects for free (MIT license); also I've tested it with my NReco.Data library under Linux, and it works perfectly in my scenarious. Unfortunately, MySqlConnector doesn't support EF Core yet.

    --- UPDATE --

    One more .NET Core-compatible MySQL connector + EF Core MySQL provider:

    • Pomelo.Data.MySql (unfortunately it doesn't implement true async behaviour)
    • Pomelo.EntityFrameworkCore.MySql
    0 讨论(0)
  • 2020-12-18 02:03

    UPDATE 2

    MySql Connector NET for .NET Core 1.0 was just released (Sep 2016)
    http://insidemysql.com/mysql-connector-net-for-net-core-1-0/

    I didn't try Bradley Grainger's connector, but this one from MySQL do not support SSL. :(

    So, anybody who wants to use anyway, should connect with ";SslMode=None;" in the connection string.

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