entity framework - EF 5 - Get Migrations Scaffold to live in a seperate project -
i don't particularly want entity framework migrations scaffold code in data access project. i've got console app manage database scripts - i'd live in here:
project.dataaccess project.databasemanagement -this console app
so far i'm here ...
enable-migrations -projectname project.dataaccess -startupprojectname project.databasemanagement the above works - scaffold code goes in dataaccess project ...
but if don't give -projectname project.dataaccess complains can't find context file.
can assist please?
i not think possible. migrations conceptually related , coupled entity framework data access portion of project.
by entering project name, telling migration engine entity framework library create migration for.
see here more information. https://entityframework.codeplex.com/discussions/398982
edit: found solution, requires using (free) third party migrations tool: https://github.com/migratordotnet/migrator.net/wiki/getting-started
let me know how goes!
Comments
Post a Comment