0
I have a backend built in C#, with Microsoft Azure and SQL Server database.
In order for me to add a new field to a table, what should I do?
It would just go in the designer of this table, via visual studio, add what I want and click update?
My Configuration:
public Configuration()
{
AutomaticMigrationsEnabled = true;
AutomaticMigrationDataLossAllowed = true;
ContextKey = "appService.Models.appContext";
SetSqlGenerator("System.Data.SqlClient", new EntityTableSqlGenerator());
}
It depends on your deployment strategy. The way you quoted, opening VS, is as manual as possible. If it’s a small project and a low upgrade, no problem. But you can always improve by going to automations.
– Thiago Lunardi
Whenever I try to use the Add-Migrations it problem, so my question. The update and creation of the tables is small
– Henrique