username@email.com
2021-07-07 06e75f18b5b3b0fbfd25731c8b7324cc42df045f
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,20 @@
            services.AddScoped(typeof(IHrJixiaotichengService), typeof(HrJixiaotichengService));
            services.AddScoped(typeof(IHrSalaryService), typeof(HrSalaryService));
            services.AddScoped(typeof(ICusFangwenjiluService), typeof(CusFangwenjiluService));
            services.AddScoped(typeof(ILZhuanjiahuidumService), typeof(LZhuanjiahuidumService));
            services.AddScoped(typeof(IWfApplytypeService), typeof(WfApplytypeService));
            services.AddScoped(typeof(IWfRunProcessService), typeof(WfRunProcessService));
            services.AddScoped(typeof(IWfNeeddeelService), typeof(WfNeeddeelService));
            services.AddScoped(typeof(IWfHistoryService), typeof(WfHistorieservice));
            services.AddScoped(typeof(IOrderBanciDtlService), typeof(OrderBanciDtlService));
            services.AddScoped(typeof(IOrderBanciService), typeof(OrderBanciService));
            services.AddScoped(typeof(IOrderBanciOrderService), typeof(OrderBanciOrderService));
            //定时执行
            services.AddHostedService<TimedBackgroundService>();