refactor: fix database contexts
This commit is contained in:
@ -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; }
|
||||
}
|
@ -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; }
|
||||
}
|
@ -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; }
|
||||
}
|
Reference in New Issue
Block a user