using Microsoft.EntityFrameworkCore; namespace DamageAssesment.Api.Responses.Db { public class SurveyResponseDbContext:DbContext { public DbSet SurveyResponses { get; set; } public SurveyResponseDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity() .Property(item => item.Id) .ValueGeneratedOnAdd(); } } }