Problem situation:
An error occurs when running .DbMigrator
Solution:
Run at the terminal of the .EntityFrameworkCore project - dotnet ef database drop to delete the database and re-run .DbMigrator
BookStore.EntityFrameworkCore> dotnet ef database drop
Build started. . .
Build succeeded.
Are you sure you want to drop the database 'BookStore' on server'(LocalDb)/NSSQLLocalDB'? (y/N)
y
Dropping database 'BookStore' on server '(LocalDb) \MSsQLLocalDB'.successfully dropped database 'BookStore" .