Lets execute the following steps to update the generated database context:
- Running the Scaffold-DbContext command will generate two classes under ProjectName Models. Those two classes are TextScoreDBContext.cs and DocumentTextScore.cs.
- 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; } } }
- The TextScoreDBContext.cs file will define ...