Deleting the migrations folder and the YourDbContextSnapshot.cs files and rebuilding the project would solve your problem.