Guest User

Guest User

  • Tech Writer
  • 2.1k
  • 480.9k

Nuget command enable-migrations

Aug 20 2020 9:44 AM
Hi Team
 
I want to do enable migration some-how i am getting this error back. Any ideas how can i resolve this. 
  1. Enable-Migrations  
  2. More than one context type was found in the assembly 'eNtsaRegistrationTraining'.  
  3. To enable migrations for 'eNtsaRegistrationTraining.Models.ApplicationDbContext', use Enable-Migrations -ContextTypeName eNtsaRegistrationTraining.Models.ApplicationDbContext.  
  4. To enable migrations for 'eNtsaRegistrationTraining.DAL.eNtsaRegCourses', use Enable-Migrations -ContextTypeName eNtsaRegistrationTraining.DAL.eNtsaRegCourses.  
  5. To enable migrations for 'eNtsaRegistrationTraining.DAL.eNtsaRegistration', use Enable-Migrations -ContextTypeName eNtsaRegistrationTraining.DAL.eNtsaRegistration.  
  6. PM> Enable-Migrations -ContextTypeName eNtsaRegistrationTraining.DAL.eNtsaCourses  
  7. The context type 'eNtsaRegistrationTraining.DAL.eNtsaCourses' was not found in the assembly 'eNtsaRegistrationTraining'.  
 

Answers (2)