Azure Backend with C #. Create a new field in a table

0

I have a backend built in C #, with Microsoft Azure and SQL Server database.

To add a new field to a table, what should I do?

Would you just go to 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());
        }
    
asked by anonymous 31.03.2017 / 18:43

1 answer

1

It depends on your deploy strategy.

Manually upgrade, such as using Visual Studio, or SQL Management, is entirely possible.

However, the ideal thing is to always try to create automations for this, either by using skill from developers such as Migrations and CakeBuild, or DevOps skill with Visual Studio Team System, Octopus, etc.

    
11.04.2017 / 08:47