c# - Why doesn't Add-Migration generate a DbMigration automatically? -
when ever add new model, few days on executing add-migration modelname dbmigration getting generating automatically, basic create table thins generating automatically. had run update-database .
but few days back, whenever add new model, on executing add-migration modelname nothing happens generates empty dbmigration below :
public partial class blogs : dbmigration { public override void up() { } public override void down() { } }
there should create table thing generated inside up() method , rollback statement in down(),
anyone else has faced same issue, can suggest may cause ?
thanks :)
Comments
Post a Comment