标签:
最近在维护一个网站,打算进行一些改进,使用Entity Framework来进行数据库操作。
网站的数据库已经有了,但是又一百多张表,手动去写实体类有些麻烦,打算用一些现成工具来做。
首先可以考虑用EntityFramework Reverse POCO Code First Generator
其次也可以用Entity Framework Power Tools,下载地址
https://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d/
安装完成后右键点击你的项目名,在弹出菜单中选择Entity Framework –> Reverse Engineering Code First 。
选择相应的数据库连接
但在实际操作时,我在更改数据源窗口里始终都找不到MySQL Database,本地已经安装了mysql-connector-net-6.8.4。经网上查询得知:
However, if you do want the latest connector you have to download another product. From the oracle website:
Starting with version 6.7, Connector/Net will no longer include the MySQL for Visual Studio integration. That functionality is now available in a separate product called MySQL for Visual Studio available using the MySQL Installer for Windows (see http://dev.mysql.com/tech-resources/articles/mysql-installer-for-windows.html).
还需要去MySQL的网站上下载MySQL for Visual Studio的插件
http://dev.mysql.com/downloads/windows/visualstudio/
标签:
原文地址:http://www.cnblogs.com/fengjunkuan/p/4737150.html