From 789027cd17a31a439efeef8ba1ef61705ba43edc Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期六, 12 十一月 2022 08:55:41 +0800
Subject: [PATCH] 1

---
 Community.Serve/Global.asax.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Community.Serve/Global.asax.cs b/Community.Serve/Global.asax.cs
index 8ba0d62..a7bda13 100644
--- a/Community.Serve/Global.asax.cs
+++ b/Community.Serve/Global.asax.cs
@@ -7,6 +7,7 @@
 using System.Web;
 using System.Web.Http;
 using System.Web.Routing;
+using System.Configuration;
 
 namespace Community.Serve
 {
@@ -14,7 +15,8 @@
     {
         protected void Application_Start()
         {
-            SQLiteHelper.DB = Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "bin\\App_Data\\Community.db");
+            //SQLiteHelper.DB = Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "bin\\App_Data\\Community.db");
+            SQLiteHelper.DB = ConfigurationManager.AppSettings["db"];
             GlobalConfiguration.Configure(WebApiConfig.Register);
         }
 

--
Gitblit v1.9.3