Entity Framework Migrations Does Not Detect Changes to Model ASP.NET -


i have added 3 new classes/tables model primary , foreign key constraints. when run add-migration, returns migration blank up() , down() methods.

add-migration 'added table1 table2 table3'  public partial class addedtable1table2table3 : dbmigration {     public override void up()     {     }      public override void down()     {     } } 

i have cleaned , rebuilt necessary projects in solution.

i have double checked config ensure connection string correct.

it turned out missing reference new tables in datacontext. solution add 3 new tables datacontext. migrations worked expected.

public dbset<table1> table1collection { get; set; } public dbset<table2> table2collection { get; set; } public dbset<table3> table3collection { get; set; } 

Comments