Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <connectionStrings>
  2. <add name="MyContext" providerName="MySql.Data.MySqlClient"
  3. connectionString="server=localhost;port=3306;database=mycontext;uid=root;password=********"/>
  4. </connectionStrings>
  5. <entityFramework>
  6. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
  7. <providers>
  8. <provider invariantName="MySql.Data.MySqlClient"
  9. type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6"/>
  10. <provider invariantName="System.Data.SqlClient"
  11. type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
  12. </providers>
  13. </entityFramework>
  14.  
  15. <add name="MyContext" connectionString="metadata=res://*/Integration.Models.MyContext.csdl|res://*/Integration.Models.MyContext.ssdl|res://*/Integration.Models.MyContext.msl;provider=System.Data.SqlClient;provider connection string="data source=(local);initial catalog=db_SQL;user id=sa;password=********;multipleactiveresultsets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement