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