Gcobani Mkontwana

Gcobani Mkontwana

  • 568
  • 1.9k
  • 406.5k

No DbContext was found in assembly. Ensure you using correct

Aug 3 2020 4:39 AM
  1. enable-migrations  
  2. Both Entity Framework Core and Entity Framework 6 are installed. The Entity Framework Core tools are running. Use 'EntityFramework\Enable-Migrations' for Entity Framework 6.  
  3. Enable-Migrations is obsolete. Use Add-Migration to start using Migrations.  
  4. PM> add-migration   
  5. cmdlet Add-Migration at command pipeline position 1  
  6. Supply values for the following parameters:  
  7. Name: Registration  
  8. Both Entity Framework Core and Entity Framework 6 are installed. The Entity Framework Core tools are running. Use 'EntityFramework\Add-Migration' for Entity Framework 6.  
  9. Build started...  
  10. Build succeeded.  
  11. The EF Core tools version '3.1.3' is older than that of the runtime '3.1.6'. Update the tools for the latest features and bug fixes.  
Hi Team
 
I need some help i cant execute my Add-Migration i often get this error every time. How do i resolve this  
 
 

Answers (3)