Unable to generate an explicit migration in entity framework

Noman Saeed picture Noman Saeed · Mar 22, 2012 · Viewed 122k times · Source

I am adding a new migration but this message shows:

Unable to generate an explicit migration because the following explicit migrations are pending: [201203170856167_left]. Apply the pending explicit migrations before attempting to generate a new explicit migration.

Can any one help me?

Answer

Ladislav Mrnka picture Ladislav Mrnka · Mar 22, 2012

It tells you that there is some unprocessed migration in your application and it requires running Update-Database before you can add another migration.