I am adding a new migration but this message shows:
Unable to generate an explicit migration because the following explicit migrations are pending:
There is an ambiguity and so error. Best way is to exclude the current migration file and create new migration(add-migration) file and then copy the content of new migration to excluded file and include it again and run update-database command.