17 lines
660 B
C#
17 lines
660 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 CampusDbContext(DbContextOptions<CampusDbContext> options) : DbContext(options), ICampusDbContext
|
|
{
|
|
public DbSet<Campus> Campuses { get; set; } = null!;
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.ApplyConfiguration(new CampusConfiguration());
|
|
base.OnModelCreating(modelBuilder);
|
|
}
|
|
} |