Is it possible to change the location of the EF Migrations “Migrations” folder?

In the configuration class constructor add this line:

this.MigrationsDirectory = "DirOne\\DirTwo";

The namespace will continue to be set as the namespace of the configuration class itself. To change this add this line (also in the configuration constructor):

this.MigrationsNamespace = "MyApp.DirOne.DirTwo";

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)