From 4d539b4a5941bbbb12271dc500f8f09a66812905 Mon Sep 17 00:00:00 2001 From: LR-20210131IOQH\Administrator <jackcold@163.com> Date: 星期五, 25 六月 2021 10:39:55 +0800 Subject: [PATCH] 工资核对,工资核准,工资查询 --- zhengcaioa/zhengcaioa/Startup.cs | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Startup.cs b/zhengcaioa/zhengcaioa/Startup.cs index 182d1fc..b061783 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)); -- Gitblit v1.9.1