When one creates more than one DbMigrationsConfiguration class power shell command require passing additional parameter to specify which configuration should be used. However error messages don't provide the information how to do it.
However message for Enable-Migrations is really good. We should make it so that all commands throw a similar error.
Here is how it looks for Enable-Migrations:
More than one context type was found in the assembly 'PuppyChow'.
To enable migrations for 'PuppyChow.Model.LoggingDbContext', use Enable-Migrations -ContextTypeName PuppyChow.Model.LoggingDbContext.
To enable migrations for 'PuppyChow.Model.PuppyChowDbContext', use Enable-Migrations -ContextTypeName PuppyChow.Model.PuppyChowDbContext.
And here is how it looks for the rest:
More than one migrations configuration type was found in the assembly 'PuppyChow'. Specify the name of the one to use.
Comments: Duplicate of http://entityframework.codeplex.com/workitem/578
However message for Enable-Migrations is really good. We should make it so that all commands throw a similar error.
Here is how it looks for Enable-Migrations:
More than one context type was found in the assembly 'PuppyChow'.
To enable migrations for 'PuppyChow.Model.LoggingDbContext', use Enable-Migrations -ContextTypeName PuppyChow.Model.LoggingDbContext.
To enable migrations for 'PuppyChow.Model.PuppyChowDbContext', use Enable-Migrations -ContextTypeName PuppyChow.Model.PuppyChowDbContext.
And here is how it looks for the rest:
More than one migrations configuration type was found in the assembly 'PuppyChow'. Specify the name of the one to use.
Comments: Duplicate of http://entityframework.codeplex.com/workitem/578