psubbiah93@gmail.com

Monday, 30 November 2015

Add MyqlData Using Package Manager Console



1. Open Package Manager Console

View->Other Window-> Package Manager Console

Type :

PM> Install-Pacakge MySql.Data

PM> Install-Package EntityFramework

Then go to web.config add the following line after the tag

 


 invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" />
the app.confing should be like this


  
    
    
name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
name="MonkeyFist" connectionString="server=localhost;user id=root;password=mypass;database=mydb" providerName="MySql.Data.MySqlClient" /> version="v4.0" sku=".NETFramework,Version=v4.5" /> type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /> invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" /> invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> invariant="MySql.Data.MySqlClient" /> name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/> xmlns="urn:schemas-microsoft-com:asm.v1"> name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" /> oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
Unknown Web Developer

Hello! I am Subbiah P and this is my web technologies blog. My specialities are PHP, Asp.net, jQuery, and CMS web application development. I do accept paid work. Write to me to start working on your dream project . I am Working as Web developer in Peace Soft Technologies

No comments:

Post a Comment