重构项目结构,移除Assignment相关功能,优化Submission模块
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s
This commit is contained in:
@@ -5,7 +5,7 @@ using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
public class AssignmentAttachmentRepository : Repository<AssignmentAttachment>, IRepository<AssignmentAttachment>
|
||||
public class AssignmentAttachmentRepository : Repository<ExamAttachment>, IRepository<ExamAttachment>
|
||||
{
|
||||
public AssignmentAttachmentRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
{
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
using Entities.Contracts;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SharedDATA.Api;
|
||||
using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
public class AssignmentClassRepository : Repository<AssignmentClass>, IRepository<AssignmentClass>
|
||||
{
|
||||
public AssignmentClassRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
public class AssignmentQuestionRepository : Repository<AssignmentQuestion>, IRepository<AssignmentQuestion>
|
||||
public class AssignmentQuestionRepository : Repository<ExamQuestion>, IRepository<ExamQuestion>
|
||||
{
|
||||
public AssignmentQuestionRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
public class AssignmentRepository : Repository<Assignment>, IRepository<Assignment>
|
||||
public class AssignmentRepository : Repository<Exam>, IRepository<Exam>
|
||||
{
|
||||
public AssignmentRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
{
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
using Entities.Contracts;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SharedDATA.Api;
|
||||
using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
public class ClassStudentRepository : Repository<ClassStudent>, IRepository<ClassStudent>
|
||||
{
|
||||
public ClassStudentRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
using Entities.Contracts;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SharedDATA.Api;
|
||||
using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
public class ClassTeacherRepository : Repository<ClassTeacher>, IRepository<ClassTeacher>
|
||||
{
|
||||
public ClassTeacherRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,13 +5,10 @@ using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
public class GlobalRepository : Repository<Global>, IRepository<Global>
|
||||
public class ClassUserRepository : Repository<ClassUser>, IRepository<ClassUser>
|
||||
{
|
||||
public GlobalRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
public ClassUserRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
14
TechHelper.Server/Repository/ExamQuestionRepository.cs
Normal file
14
TechHelper.Server/Repository/ExamQuestionRepository.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Entities.Contracts;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SharedDATA.Api;
|
||||
using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
public class ExamQuestionRepository : Repository<ExamQuestion>, IRepository<ExamQuestion>
|
||||
{
|
||||
public ExamQuestionRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
14
TechHelper.Server/Repository/ExamTypeRepository.cs
Normal file
14
TechHelper.Server/Repository/ExamTypeRepository.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Entities.Contracts;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SharedDATA.Api;
|
||||
using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
public class ExamTypeRepository : Repository<ExamType>, IRepository<ExamType>
|
||||
{
|
||||
public ExamTypeRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
13
TechHelper.Server/Repository/KeyPointRepository.cs
Normal file
13
TechHelper.Server/Repository/KeyPointRepository.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Entities.Contracts;
|
||||
using SharedDATA.Api;
|
||||
using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
public class KeyPointRepository : Repository<KeyPoint>, IRepository<KeyPoint>
|
||||
{
|
||||
public KeyPointRepository(ApplicationContext context) : base(context)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
18
TechHelper.Server/Repository/LessonRepository.cs
Normal file
18
TechHelper.Server/Repository/LessonRepository.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Entities.Contracts;
|
||||
using SharedDATA.Api;
|
||||
using System.Linq.Expressions;
|
||||
using TechHelper.Context;
|
||||
using TechHelper.Server.Repository;
|
||||
|
||||
namespace TechHelper.Server.Repository
|
||||
{
|
||||
/// <summary>
|
||||
/// Lesson仓储实现类
|
||||
/// </summary>
|
||||
public class LessonRepository : Repository<Lesson>, IRepository<Lesson>
|
||||
{
|
||||
public LessonRepository(ApplicationContext context) : base(context)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
14
TechHelper.Server/Repository/QuestionTypeRepository.cs
Normal file
14
TechHelper.Server/Repository/QuestionTypeRepository.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Entities.Contracts;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SharedDATA.Api;
|
||||
using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
public class QuestionTypeRepository : Repository<QuestionType>, IRepository<QuestionType>
|
||||
{
|
||||
public QuestionTypeRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
14
TechHelper.Server/Repository/SubjectRepository.cs
Normal file
14
TechHelper.Server/Repository/SubjectRepository.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Entities.Contracts;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SharedDATA.Api;
|
||||
using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
public class SubjectRepository : Repository<Subject>, IRepository<Subject>
|
||||
{
|
||||
public SubjectRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
21
TechHelper.Server/Repository/TextbookRepository.cs
Normal file
21
TechHelper.Server/Repository/TextbookRepository.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Entities.Contracts;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SharedDATA.Api;
|
||||
using TechHelper.Context;
|
||||
|
||||
namespace TechHelper.Repository
|
||||
{
|
||||
/// <summary>
|
||||
/// 教材仓储实现类
|
||||
/// </summary>
|
||||
public class TextbookRepository : Repository<Textbook>, IRepository<Textbook>
|
||||
{
|
||||
/// <summary>
|
||||
/// 初始化教材仓储
|
||||
/// </summary>
|
||||
/// <param name="dbContext">数据库上下文</param>
|
||||
public TextbookRepository(ApplicationContext dbContext) : base(dbContext)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user