EF migration shows empty Up() Down() methods

后端 未结 17 2441
花落未央
花落未央 2020-12-25 09:56

I have a local database that is currently in it\'s second version and should now go to it\'s third version.

The code for the previous migrations was generated by ano

17条回答
  •  我在风中等你
    2020-12-25 09:58

    Temprorary remove

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
    }
    

    and then do initial create

    Add-Migration InitialCreate
    

提交回复
热议问题