From 6b14f6fdebc6bb3cb99aea0c0848ddfad0e30633 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 22 十二月 2021 14:02:46 +0800
Subject: [PATCH] 会员的免费质疑书,投诉书次数
---
zhengcaioa/zhengcaioa/Startup.cs | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Startup.cs b/zhengcaioa/zhengcaioa/Startup.cs
index f13e6d3..a7dc189 100644
--- a/zhengcaioa/zhengcaioa/Startup.cs
+++ b/zhengcaioa/zhengcaioa/Startup.cs
@@ -74,6 +74,10 @@
services.AddDbContext<zcwebContext>(options =>
options.UseSqlServer(connectionString1));
+ var connectionString2 = Configuration.GetConnectionString("zcUserInfoNConnection");
+ services.AddDbContext<zcUserInfoN_dbContext>(options =>
+ options.UseSqlServer(connectionString2));
+
services.AddControllersWithViews();
services.AddScoped(typeof(ISimService), typeof(SimService));
@@ -149,7 +153,9 @@
services.AddScoped(typeof(IAdmZhanghaomimaService), typeof(AdmZhanghaomimaService));
services.AddScoped(typeof(IAdmTongxunluService), typeof(AdmTongxunluService));
- services.AddScoped(typeof(IAskService), typeof(AskService));
+ services.AddScoped(typeof(IAskService), typeof(AskService));
+ services.AddScoped(typeof(IAdmGoodsRecordService), typeof(AdmGoodsRecordService));
+ services.AddScoped(typeof(IExpertTestTopicService), typeof(ExpertTestTopicService));
//zcweb
services.AddScoped(typeof(IDtChannelArticleNewsService), typeof(DtChannelArticleNewsService));
--
Gitblit v1.9.1