17 lines
677 B
C#
17 lines
677 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Mirea.Api.DataAccess.Application.Interfaces.DbContexts.Schedule;
|
|
using Mirea.Api.DataAccess.Domain.Schedule;
|
|
using Mirea.Api.DataAccess.Persistence.EntityTypeConfigurations.Schedule;
|
|
|
|
namespace Mirea.Api.DataAccess.Persistence.Contexts.Schedule;
|
|
|
|
public class ProfessorDbContext(DbContextOptions<ProfessorDbContext> options) : DbContext(options), IProfessorDbContext
|
|
{
|
|
public DbSet<Professor> Professors { get; set; } = null!;
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.ApplyConfiguration(new ProfessorConfiguration());
|
|
base.OnModelCreating(modelBuilder);
|
|
}
|
|
} |