refactor: fix database contexts

This commit is contained in:
2024-01-26 07:43:27 +03:00
parent bd3a11486d
commit e7c05b4a68
7 changed files with 18 additions and 46 deletions

View File

@ -3,7 +3,7 @@ using Mirea.Api.DataAccess.Domain.Schedule;
namespace Mirea.Api.DataAccess.Application.Interfaces.DbContexts.Schedule;
public interface IDayDbContext : IDbContextBase
public interface IDisciplineDbContext : IDbContextBase
{
DbSet<Day> Days { get; set; }
DbSet<Discipline> Disciplines { get; set; }
}

View File

@ -3,7 +3,7 @@ using Mirea.Api.DataAccess.Domain.Schedule;
namespace Mirea.Api.DataAccess.Application.Interfaces.DbContexts.Schedule;
public interface IProfessorToLessonDbContext : IDbContextBase
public interface ILessonAssociationDbContext : IDbContextBase
{
DbSet<ProfessorToLesson> ProfessorToLessons { get; set; }
DbSet<LessonAssociation> LessonAssociations { get; set; }
}

View File

@ -1,9 +0,0 @@
using Microsoft.EntityFrameworkCore;
using Mirea.Api.DataAccess.Domain.Schedule;
namespace Mirea.Api.DataAccess.Application.Interfaces.DbContexts.Schedule;
public interface ILessonToTypeOfOccupationDbContext : IDbContextBase
{
DbSet<LessonToTypeOfOccupation> LessonToTypeOfOccupations { get; set; }
}