The Entity Framework uses the MySQL configuration file

Source: Internet
Author: User
Tags connectionstrings

<?xml version= "1.0"  encoding= "Utf-8"?><configuration>  <configsections>     <section name= "EntityFramework"  type= " system.data.entity.internal.configfile.entityframeworksection, entityframework, version=6.0.0.0,  culture=neutral, publickeytoken=b77a5c561934e089 " requirepermission=" false " />     <!-- For more information on Entity Framework  configuration, visit http://go.microsoft.com/fwlink/? linkid=237468 -->  </configsections>  <startup>     <supportedruntime version= "v4.0"  sku= ". netframework,version=v4.5.1 " />  </startup>  <system.data>     <dbproviderfactories>      <remove invariant= " MySql.Data.MySqlClient " />    &nbsP; <add name= "Mysql data provider"  invariant= "MySql.Data.MySqlClient"   Description= ". Net framework data provider for mysql"  type= " mysql.data.mysqlclient.mysqlclientfactory, mysql.data, version=6.9.3.0, culture=neutral,  Publickeytoken=c5687fc88969c44d " />    </DbProviderFactories>   </system.data>  <entityframework codeconfigurationtype= " Mysql.data.entity.mysqlefconfiguration, mysql.data.entity.ef6 ">    < Defaultconnectionfactory type= "system.data.entity.infrastructure.localdbconnectionfactory,  EntityFramework ">      <parameters>         <parameter value= "v11.0"  />      </parameters>     </defaultconnectionfactory>    <provideRs>      <provider invariantname= "MySql.Data.MySqlClient"  type= " Mysql.data.mysqlclient.mysqlproviderservices, mysql.data.entity.ef6, version=6.9.3.0, culture= Neutral, publickeytoken=c5687fc88969c44d "></provider>      < Provider invariantname= "System.Data.SqlClient"  type= " System.data.entity.sqlserver.sqlproviderservices, entityframework.sqlserver " />     </providers>  </entityFramework>  <connectionStrings>     <add name= "www"  connectionstring= "data source=localhost;initial catalog= nima;user id=root;password=123456; "  providername= "MySql.Data.MySqlClient"  />  </connectionstrings></configuration >


The Entity Framework uses the MySQL configuration file

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.