SapientGuardian / mysql-connector-net-netstandard

ADO.NET driver for MySQL targeted against netstandard 1.3
GNU General Public License v2.0
46 stars 15 forks source link

i still dont know how to connect ef core to mysql #24

Closed HeikoZhang closed 8 years ago

HeikoZhang commented 8 years ago

thanks for your work, could you write a sample in vs2015 using ef core connecting to mysql DB?

SapientGuardian commented 8 years ago

Hi @HeikoZhang. I don't believe there's any way to use this library along with EF7, at least not without writing some sort of adapter code.

If you're not dead set on EF, I believe some folks are successfully using this library with Dapper.

eByte23 commented 8 years ago

I'm testing an implmentation of mysql for EF7/EFCORE base on sqlite version I converted. But its sorta a when a get time as I don't require this.

Also NPoco and Dapper both works as ORM's as an alternative to EF7

SapientGuardian commented 8 years ago

It is now possible to use this library with EF through the provider library at https://github.com/SapientGuardian/SapientGuardian.EntityFrameworkCore.MySql. Here's a sample project: https://github.com/SapientGuardian/AspNet5MultipleProject