I need to add a set of columns to all of my database's tables (SQL Server).
I have generated my database using Code First migrations in Entity Framework 6.
Is it possible to add all these columns to all of my tables at once ? For instance, by overriding the OnModelCreating method with some specific code ?
Or do I have to add these columns to each of my Models used to update the database ?
Thank you in advance for your help !
--
Glad
add-migrationand thenupdate-database. add- migration will create a file with commands to create your new columns, update-database will apply the changes.