using System.Reflection; using Core.Entities; using Microsoft.EntityFrameworkCore; namespace Data { public class AppDbContext : DbContext { public DbSet Events { get; set; } public DbSet Students { get; set; } public DbSet Teams { get; set; } public DbSet StudentEventRanking { get; set; } public DbSet EventOccurrences { get; set; } public DbSet Careers { get; set; } public DbSet Notes { get; set; } public DbSet NoteHistories { get; set; } public DbSet TeamMeetingHistories { get; set; } public AppDbContext() { } public AppDbContext(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly()); } } }