Entity Framework in MySQL

Source: Internet
Author: User
Tags mysql for visual studio

To start using Entity Framework 6 and Visual Studio are necessary to install MySQL for Visual Studio 1.1.1 Beta and My SQL connector/net 6.8.1 Beta


MySQL for Visual Studio 1.1.1 Beta can is downloaded with the following link:
Https://cdn.mysql.com/Downloads/MySQLInstaller/mysql-visualstudio-plugin-1.1.1.msi

MySQL connector/net 6.8.1 Beta
http://dev.mysql.com/downloads/connector/net/


To-start working with VS. and EF 6

1-install the MySQL for Visual Studio 1.1.1
2-install the connector/net 6.8.1 product.
3-to work and Database first please do the following
A.add the reference for the new Assembly called MySql.Data.Entity.EF6 and copy it to the bin Forlder of your application.
B.add the provider to your App/web config file in the providers for Entity Framework sections with the following line:
<provider invariantname= "MySql.Data.MySqlClient" type= "MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6 "></provider>
C.before you run the Wizard compile your application so the new changes is applied.
4-to work with Model first-do the following
A.add the reference for the new Assembly called MySql.Data.Entity.EF6 and copy it to the bin Forlder of your application.
B.add the ADO Entity Model new or existing.
C.select the T4 template corresponding to MySQL (Ssdltomysql)
D.right Click on the model and then select Generate Script to Create Database. (A MySQL script should is generated for your to create your database).

4.11 Using the ADO Entity Framework

Http://dev.mysql.com/doc/connector-net/en/connector-net-visual-studio-entity-framework.html

5.5 Tutorial:using an entity Framework Entity as a Windows Forms Data Source

Http://dev.mysql.com/doc/connector-net/en/connector-net-tutorials-entity-framework-winform-data-source.html

Chapter EF 6 Support

Http://dev.mysql.com/doc/connector-net/en/connector-net-entityframework60.html

More

ASP. identity:using MySQL Storage with an entityframework MySQL Provider

Http://www.asp.net/mvc/tutorials/security/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.