Sachin Singh

Sachin Singh

  • 10
  • 55.8k
  • 75.6k

N-tier, EF, Live database problem.

Jul 26 2020 3:09 PM
A website is hosted and is live, the architecture is :-
1.Entities(class library)
2.DAL(class library (dbcontext is here))
3.APP(MVC)
 
Now a new requirement came , and i have to add a new table to live database.
Meaning 1.Add entity in first layer
2.Add DbSet in second layer
3.write code in MVC controller, view for functionality.
 
Add initial migration Run update database cmd.
Now as the first two layers are dlls, so do i need to republish the whole project (mvc which will refresh the dll) or like whenever i need changes in a particular controller or view in MVC layer, i usually publish only that modified controller. So here ,will only publishing the particular controller change the other two layers dll in server?? And will migration work??

Answers (3)