1.创建一个项目(控制台或者framework窗体)

准备工具 及其版本

nuget下载entity framework 6.4.4 

查看本机安装的mysql connector版本(8.0.20),如下:

Entity Framework 使用教程

nuget下载同一版本的 MySql.Data.EntityFramework 8.0.20

然后编译一下

2.在项目上右键添加 ado.net实体类型

然后在弹出的窗口选择 (此处如果第一步的软件版本不对应,会出现此处一闪而过永远无法进行到下一步

具体详情参考 https://blog.csdn.net/qq_40521205/article/details/86603709

 

Entity Framework 使用教程

点击下一步

Entity Framework 使用教程

 

Entity Framework 使用教程

3. 查看解决方案 

是否生成如下的文件

Entity Framework 使用教程

如果没有 则说明 有问题,以上。

相关文章:

  • 2021-09-27
  • 2022-12-23
  • 2021-09-27
  • 2021-09-27
  • 2021-10-07
  • 2021-05-31
  • 2022-12-23
  • 2021-10-24
猜你喜欢
  • 2021-10-12
  • 2022-01-05
  • 2021-09-27
  • 2021-09-27
相关资源
相似解决方案