I am trying to enable migrations in my project but I always get this error :
More than one context type was found in the assembly 'CarManagement'.
To enable migrations for 'CarManagement.Models.CarManagementContext', use Enable-Migrations-ContextTypeName CarManagement.Models.CarManagementContext.
To enable migrations for 'CarManagement.Models.ApplicationDbContext', use
Enable-Migrations -ContextTypeName CarManagement.Models.ApplicationDbContext
and when I try to use only one context it also does not work and this error appears:
Enable-Migrations: A positional parameter cannot be found that accepts argument 'CarManagement.Models.CarManagementContext.'.
At line:1 char:1
- Enable-Migrations -ContextTypeName eManager CarManagement.Models.CarM ...
+ CategoryInfo : InvalidArgument: (:) [Enable-Migrations], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Enable-Migrations


Enable-Migrations -ContextTypeName eManager CarManagement.Models.CarManagementContext. Remove the "eManager" from that. I don't know where it comes from, but you have typed it.