I have a problem scaffolding and doing migrations from a class library with multiple DBContexts. I found a command line argument that looks like this for migrations:
The newest version (RC1 update 1) of the command line tools supports the following syntax:
Usage: dnx ef dbcontext scaffold [arguments] [options]
Arguments:
[connection] The connection string of the database
[provider] The provider to use. For example, EntityFramework.MicrosoftSqlServer
Options:
-a|--data-annotations Use DataAnnotation attributes to configure the model where possible. If omitted, the output code will use only the fluent API.
-c|--context Name of the generated DbContext class.
-o|--output-dir Directory of the project where the classes should be output. If omitted, the top-level project directory is used.
-s|--schema Selects a schema for which to generate classes.
-t|--table Selects a table for which to generate classes.
-p|--target-project The project to scaffold the model into. If omitted, the current project is used.
-e|--environment The environment to use. If omitted, "Development" is used.
-v|--verbose Show verbose output
-?|-h|--help Show help information