Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please i want to perform database migration but the bellow error show upse.what can i do
SQL
More than one context type was found in the assembly 'AccfOutReach2013'.
To enable migrations for AccfOutReach2013.Models.AccfOutReach2013DBContext, use Enable-Migrations -ContextTypeName AccfOutReach2013.Models.AccfOutReach2013DBContext.
To enable migrations for AccfOutReach2013.Models.UsersContext, use Enable-Migrations -ContextTypeName AccfOutReach2013.Models.UsersContext.


[edit]SHOUTING removed - OriginalGriff[/edit]
Posted
Updated 16-Oct-13 1:55am
v2
Comments
OriginalGriff 16-Oct-13 7:55am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.

1 solution

It is self explanatory . Restart your VS and then use the specific project if multiple projects are there in the solution and then use Enable-Migrations -ContextTypeName be specificwith the context type. As it might conflict with multiple context types present.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900