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

Asked

Viewed 30 times

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.

  • Whenever I try to use the Add-Migrations it problem, so my question. The update and creation of the tables is small

1 answer

1


Depends on your deployment strategy.

Manual updating, such as using Visual Studio, or SQL Management, is entirely possible.

However, the ideal is to always try to create automations for this, whether using developers' Skill, such as Migrations and Cakebuild, or Skill Devops with Visual Studio Team System, Octopus, etc.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.