namespace JOBot.Backend.DAL.Context; using JOBot.Backend.DAL.Models; using Microsoft.EntityFrameworkCore; class AppDbContext : DbContext { public DbSet Users { get; set; } public AppDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity() .HasAlternateKey(b => b.TelegramId); } }