Updating the generated database context

Lets execute the following steps to update the generated database context:

  1. Running the Scaffold-DbContext command will generate two classes under ProjectName Models. Those two classes are TextScoreDBContext.cs and DocumentTextScore.cs.
  2. The DocumentTextScore.cs file will define a DocumentTextScore partial class with public properties based on the SQL DocumentTextScore table columns:
        using System;        using System.Collections.Generic;        namespace TextScoreDashboard.Models        {            public partial class DocumentTextScore            {                public int Id { get; set; }                public string DocumentName { get; set; }                public DateTime Date { get; set; }                public double TextSentimentScore { get; set; }             }        }
  1. The TextScoreDBContext.cs file will define ...

Get Serverless computing in Azure with .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.