<?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"/> <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