using Microsoft.EntityFrameworkCore; namespace DamageAssesment.Api.UsersAccess.Db { public class UsersAccessDbContext : DbContext { public DbSet Users { get; set; } public DbSet Roles { get; set; } public DbSet Tokens { get; set; } public UsersAccessDbContext(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(); modelBuilder.Entity() .Property(item => item.Id) .ValueGeneratedOnAdd(); } } }