LR-20210131IOQH\Administrator
2021-06-18 a6b6b4303483395bf6ff745f5abf171552afae38
zhengcaioa/zhengcaioa/Startup.cs
@@ -66,8 +66,11 @@
            var connectionString = Configuration.GetConnectionString("DefaultConnection");
            services.AddDbContext<zhengcaioaContext>(options =>
            options.UseSqlServer(connectionString));
            options.UseSqlServer(connectionString));
            services.AddControllersWithViews();
            services.AddScoped(typeof(ISimService), typeof(SimService));
            services.AddScoped(typeof(IUserService), typeof(UserService));
            services.AddScoped(typeof(ILiaotianService), typeof(LiaotianService));
            services.AddScoped(typeof(IProjectService), typeof(ProjectService));
@@ -112,7 +115,10 @@
            services.AddScoped(typeof(IFiBookService), typeof(FiBookService));
            services.AddScoped(typeof(IAdmAttendanceRuleService), typeof(AdmAttendanceRuleService));
            services.AddScoped(typeof(IAdmAttendanceDtlService), typeof(AdmAttendanceDtlService));
            services.AddScoped(typeof(IAdmAttendanceService), typeof(AdmAttendanceService));
            services.AddAutoMapper(typeof(AutoMapperConfigs));
            services.AddUEditorService("ueditor.json", true, "wwwroot");