using Microsoft.EntityFrameworkCore; using AcaMate.V1.Models; using Version = AcaMate.V1.Models.Version; namespace AcaMate.Common.Data; //database=AcaMate; public class AppDbContext: DbContext { public AppDbContext(DbContextOptions options) : base(options) { } //MARK: Program public DbSet Version { get; set; } public DbSet Academy { get; set; } //MARK: USER public DbSet Login { get; set; } public DbSet UserAcademy { get; set; } public DbSet User { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity() .HasKey(ua => new { ua.uid, ua.bid }); } }