LR-20210131IOQH\Administrator
2021-08-10 11e11a51839529b17f70927524e086e90adf692d
zhengcaioa/zhengcaioa/Startup.cs
@@ -68,8 +68,12 @@
            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(IHrSalaryService), typeof(HrSalaryService));
            services.AddScoped(typeof(IUserService), typeof(UserService));
            services.AddScoped(typeof(ILiaotianService), typeof(LiaotianService));
            services.AddScoped(typeof(IProjectService), typeof(ProjectService));
@@ -122,7 +126,7 @@
            services.AddScoped(typeof(IHrJixiaotichengService), typeof(HrJixiaotichengService));
            services.AddScoped(typeof(IHrSalaryService), typeof(HrSalaryService));
            //定时执行
            services.AddHostedService<TimedBackgroundService>();