From 0f5218bb8ed4ad8fa9b8b2f089efd624dc6e9f07 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 21 六月 2021 08:56:25 +0800
Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/zhengcaioa

---
 zhengcaioa/zhengcaioa/Startup.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Startup.cs b/zhengcaioa/zhengcaioa/Startup.cs
index 182d1fc..103fb08 100644
--- a/zhengcaioa/zhengcaioa/Startup.cs
+++ b/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));

--
Gitblit v1.9.1