From 06e75f18b5b3b0fbfd25731c8b7324cc42df045f Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 07 七月 2021 17:15:30 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Startup.cs | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Startup.cs b/zhengcaioa/zhengcaioa/Startup.cs index 182d1fc..58f88ba 100644 --- a/zhengcaioa/zhengcaioa/Startup.cs +++ b/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>(); -- Gitblit v1.9.1