2024-01-08 16:51:57 +03:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Mirea.Api.DataAccess.Application.Interfaces.DbContexts.Schedule;
|
|
|
|
|
using Mirea.Api.DataAccess.Domain.Schedule;
|
2024-05-30 20:11:18 +03:00
|
|
|
|
using Mirea.Api.DataAccess.Persistence.Common;
|
|
|
|
|
using System.Reflection;
|
2024-01-08 16:51:57 +03:00
|
|
|
|
|
|
|
|
|
namespace Mirea.Api.DataAccess.Persistence.Contexts.Schedule;
|
|
|
|
|
|
2024-05-30 20:11:18 +03:00
|
|
|
|
public sealed class LectureHallDbContext(DbContextOptions<LectureHallDbContext> options) : BaseDbContext<LectureHallDbContext>(options), ILectureHallDbContext
|
2024-01-08 16:51:57 +03:00
|
|
|
|
{
|
|
|
|
|
public DbSet<LectureHall> LectureHalls { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
2024-05-30 20:11:18 +03:00
|
|
|
|
modelBuilder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly());
|
2024-01-08 16:51:57 +03:00
|
|
|
|
base.OnModelCreating(modelBuilder);
|
|
|
|
|
}
|
|
|
|
|
}
|