From 0879713a184c48a0306a771a1e151387d5a9cf4c Mon Sep 17 00:00:00 2001
From: LR-20210131IOQH\Administrator <jackcold@163.com>
Date: 星期一, 28 六月 2021 12:40:37 +0800
Subject: [PATCH] 电话费用录入修改
---
zhengcaioa/zhengcaioa/Startup.cs | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Startup.cs b/zhengcaioa/zhengcaioa/Startup.cs
index 182d1fc..369466f 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,7 @@
services.AddScoped(typeof(IHrJixiaotichengService), typeof(HrJixiaotichengService));
-
+ services.AddScoped(typeof(IHrSalaryService), typeof(HrSalaryService));
//定时执行
services.AddHostedService<TimedBackgroundService>();
--
Gitblit v1.9.1