문제

Is there a way of changing the location of the Migrations/Configuration.cs file to another location without breaking EntityFramework migrations?

도움이 되었습니까?

해결책

Of course, migration functionality is not dependent on where the Configuration.cs file is. You may freely move it. When you call migration scripts it will still search for Configuration class in whole project. Remember only about properly setting MigrationsDirectory property within Configuration class - it points to folder where you have your migration classes defined.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top