Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Closed Issue: Migrations - error messages are bad when having multiple migrations configuration classes [637]

$
0
0
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

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>