Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

optionsBuilder UseMySQL missing override to provide MigrationsAssembly (no replies)

$
0
0
Hi,

I just installed the EFCore and have migrations for MySQL on separate assembly

In order to provide the migrations assembly I use the following snippet

var optionsBuilder = new DbContextOptionsBuilder<MyDbContext>();
optionsBuilder.UseMySQL("connection_string");
var p = new MySQLDbContextOptionsBuilder(optionsBuilder);
p.MigrationsAssembly("migrations_assembly");

Please add the Missing overload in UseMySQL extension with Action<MySqlDbContextOptionsBuilder> parameter in order to to simplify this scenario and be consistent with the other providers

Regards,

Michael

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>