Using EF DbContext with mysql and sql in the same project
问题 I'm working on an ASP.net MVC project using EF in combination with MySql. Now this works just fine on its own but I also want to reference another class library that uses EF with SQL. When I reference the library EF seems to get confused on what provider to use for each DbContext. On my MySql DbContext I have the following attribute in order to tell EF this DbContext should be handled by the MySql provider: [DbConfigurationType(typeof(MySql.Data.Entity.MySqlEFConfiguration))] Now on the SQL