entity framework 6 - How to set SetSqlGenerator and CodeGenerator in MySql Connector 6.9.6? -
i updated mysql connector/net 6.9.6 (from 6.9.5) , ef 6.1.3 (from 6.1.2) broke migrations :(
i used have this, make migrations work on mysql.
public configuration() { // fails cannot assign mysqlmigrationsqlgenerator tosystem.data.entity.migrations.sql.migrationsqlgenerator setsqlgenerator("mysql.data.mysqlclient", new mysql.data.entity.mysqlmigrationsqlgenerator()); // fails cannot assign mysqlmigrationcodegenerator system.data.entity.migrations.design.migrationcodegenerator codegenerator = new mysql.data.entity.mysqlmigrationcodegenerator(); }
but doesn't work. , when remove generated migrations prefixed dbo
doesn't work.
i tried setting new config in web.config
<entityframework codeconfigurationtype="mysql.data.entity.mysqlefconfiguration, mysql.data.entity.ef6">
also tried setting new attribute on context.
[dbconfigurationtype(typeof(mysqlefconfiguration))] public class mycontext : dbcontext
but no avail.
how make migrations work again new connector?