How can I use MySQL with Visual Studio 2012 Lightswitch? I want to use Amazon AWS RDS for the MySQL server. I'm getting an error: Failed to find or load the registered .Net Framework Data Provider.
问问题
2811 次
2 回答
8
Here's the steps for using MySQL with Visual Studio 2012 Lightswitch:
- Install MySQL community installer. I used mysql-installer-community-5.6.12.1.msi.
- Optionally install Amazon AWS Tools and SDK: AWSToolsAndSDKForNet.msi
- Optionally install Microsoft SQL Server Data Tools: SSDTSetup.exe.
- Create a LightSwitch project.
- Select: Attach to an External Datasource to summon the Attach Data Source Wizard.
- Choose: Database as the source.
- In Connection Properties: Hit the Change Datasource button, select MySql Database.
- Enter Server name: (Amazon AWS RDS Endpoint), User name (awsuser?), Password (password).
- Database name: Hit drop down box. Select database. Click OK.
- Import your database objects.
- In Solution Explorer, choose File View.
- Drill down into Server's References. Right click, Add Reference, search for MySQL references, add MySql.Data.Entities. I was presented with several choices with 6.6.5.0 being the one that worked. YMMV.
- You should be good to go.
Step 12 resolves the error: Failed to find or load the registered .Net Framework Data Provider.
于 2013-07-05T23:39:23.637 回答
4
对于 VS 2013,我必须执行以下操作:
使用MySQL 社区安装程序安装/更新您的 MySQL
- 请务必在下图中添加应用程序功能:
现在我在 Visual Studio 中将 MySQL 数据库作为数据源选项:
于 2014-02-18T02:06:15.397 回答