username@email.com
2021-06-25 77f8f99697748749edd553b127de34b02ccb18c5
zhengcaioa/zhengcaioa/Startup.cs
@@ -68,8 +68,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));
@@ -122,7 +125,7 @@
            services.AddScoped(typeof(IHrJixiaotichengService), typeof(HrJixiaotichengService));
            services.AddScoped(typeof(IHrSalaryService), typeof(HrSalaryService));
            //定时执行
            services.AddHostedService<TimedBackgroundService>();