A way to use custom migrations directory?
Seems command dnx ef migrations add doesn't support custom directories to save migrations to.
So, having multiple database contexts will produce difficulties in generating migrations.
Or am I wrong and it can be done some way?
The tool will mimic the directory and namespace of the previous migration. Simply change them to what you want and code on.
Yeah, this works awesome. Thanks for highlight this feature!
I'm going to re-open this since we clearly have a discoverability issue here.
Discussed and decided we should add a param to the command to allow you to specify directory ( we will imply namespace from this).
In the meantime, you can just move the migrations since we will follow where the most recent migration is. The parameter would just override this behavior.