using System.ComponentModel;
using Exam.Repository.Sqlsugar.Validators.Trains;
using Hotline.Exams.Trains;
using Hotline.Repository.SqlSugar.DataPermissions;
using Hotline.Repository.SqlSugar.Exam.Interfaces.Trains;
using SqlSugar;
using XF.Domain.Dependency;

namespace Hotline.Repository.SqlSugar.Exam.Repositories.Trains
{
    /// <summary>
    /// 培训模版仓储
    /// </summary>
    [Description("培训模版仓储")]
    public class TrainTemplateRepository : ExamRepository<ExamTrainTemplate>, ITrainTemplateRepository,IScopeDependency
    {
        public TrainTemplateRepository(ISugarUnitOfWork<HotlineDbContext> uow, IDataPermissionFilterBuilder dataPermissionFilterBuilder, IServiceProvider serviceProvider) : base(uow, dataPermissionFilterBuilder, serviceProvider)
        {
            Validator = new TrainTemplateValidator(this);
        }
    }
}

