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?


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -