简体   繁体   English

DNXCORE 5.0和mysql / mariadb

[英]DNXCORE 5.0 and mysql / mariadb

For a new project which has to target Linux and Windows, I am searching for a solution to support MySQL (or MariaDB). 对于必须针对Linux和Windows的新项目,我正在寻找一种支持MySQL(或MariaDB)的解决方案。

Because we have to support those different platforms I wish to work on DNX Core5.0. 因为我们必须支持这些不同的平台,所以我希望在DNX Core5.0上工作。 However I can't find any nuget packages / connectors which I can use to connect to the database. 但是我找不到任何可用于连接数据库的nuget包/连接器。 the one that i find are not supported by DNX core 5.0. DNX Core 5.0不支持我找到的那个。

Is there a way to connect to mysql in DNX core 5.0 ? 有没有办法在DNX Core 5.0中连接到mysql? Or do you have to fall back on ODBC connections, i don't know if this would work... 还是您必须依靠ODBC连接,我不知道这是否可行...

Further i was searching for an ORM to support this, my research till now found out that 此外,我正在寻找一个ORM来支持这一点,直到现在我的研究发现

  • Entity Framework 7 is not supporting MySQL at this moment. 实体框架7目前不支持MySQL。 (and EF is not my favorite ORM at this moment) (并且EF目前不是我最喜欢的ORM)
  • NHibernate: Currently nobody is working on it and it will be difficult (breaking changes) to port it to DNX Core NHibernate:目前尚无人在研究它,并且很难(破坏更改)将其移植到DNX Core
  • Dapper: (MicroORM I know ...): This is supporting DNXCore but i need a vallid IConnection which I can't create. Dapper:(我知道MicroORM ...):这支持DNXCore,但是我需要我无法创建的vallid IConnection。

Thanks for your feedback! 感谢您的反馈意见!

Rob

I asked a similar question a couple of weeks ago. 几周前,我问了一个类似的问题。 There is no MySql connector for DNX Core. DNX Core没有MySql连接器。 I had to fall back to DNX 4.5.1 and was able to use MySql with Entity Framework in a project that's running inside a Docker container. 我不得不退回到DNX 4.5.1,并且能够在Docker容器中运行的项目中将MySql与Entity Framework一起使用。 Also see the response to my question . 另请参阅对我的问题答复

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM