title: How to update a table of an existing, scaffolded database in ASP.NET Core
body: <p>I scaffolded my database succesfully, and I tried adding a field to a model</p>
  <p>`</p>
  <pre><code>public partial class Cotizaciones
  {
      private static Random rnd = new Random();
      public Cotizaciones()
      {
          DetalleProductoPersonalizados = new HashSet&lt;DetalleProductoPersonalizado&gt;();
      }
  
      [Key]
      public int Idcotizacion { get; set; }
      public DateTime FechaInicio { get; set; }
      public DateTime FechaFin { get; set; }
      public double PrecioFinal { get; set; }
      public string Ubicacion { get; set; } = null!;
      public bool Estado { get; set; }
      public int? PaqueteFk { get; set; }
  
      [Column(TypeName = &quot;nvarchar(max)&quot;)]
      public string? NombreCotizacion = GenerateLetter(); //---&gt; new field
  
      private static string GenerateLetter()
      {
          StringBuilder fileName = new StringBuilder(&quot;&quot;);
          for (int i = 0; i &lt;= rnd.NextInt64(1,35); i++)
          {
              fileName.Insert(i, Convert.ToChar(rnd.Next(65, 90)));
          }
          return fileName.ToString();
      }
  
      [NotMapped]
      [DisplayName(&quot;Subir comprobante de pago&quot;)]
      public IFormFile ImageFile { get; set; }
  
      public virtual Paquete? PaqueteFkNavigation { get; set; }
      public virtual ICollection&lt;DetalleProductoPersonalizado&gt; DetalleProductoPersonalizados { get; set; }
  }
  </code></pre>
  <p>`</p>
  <p>However applying migrations said no changes were made, making a new migration and trying to apply it throws me this message</p>
  <blockquote>
  <p>There is already an object named 'AspNetRoles' in the database.</p>
  </blockquote>