From fd50736e08c4acd47be1cc940e242a69aee6f66c Mon Sep 17 00:00:00 2001 From: SoulStar Date: Mon, 9 Sep 2024 13:35:27 +0800 Subject: [PATCH] =?UTF-8?q?debug=20-=20=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=BF=9E=E4=B8=8D=E4=B8=8A=E9=97=AE=E9=A2=98=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Extensions/SqlsugarSetup.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/SlnMesnac.Extensions/SqlsugarSetup.cs b/SlnMesnac.Extensions/SqlsugarSetup.cs index 88d50b7..2f3daf2 100644 --- a/SlnMesnac.Extensions/SqlsugarSetup.cs +++ b/SlnMesnac.Extensions/SqlsugarSetup.cs @@ -32,14 +32,6 @@ namespace SlnMesnac.Extensions { public static class SqlsugarSetup { - private static string GetCurrentProjectPath - { - - get - { - return Environment.CurrentDirectory.Replace(@"\bin\Debug", "");//获取具体路径 - } - } /// /// 注册SqlSugar @@ -60,7 +52,7 @@ namespace SlnMesnac.Extensions { ConfigId = item.configId, DbType = (DbType)item.dbType, - ConnectionString = @"DataSource=" + GetCurrentProjectPath + @"\DataBase\SqlSugar4xTest.sqlite", + ConnectionString = item.connStr, InitKeyType = InitKeyType.Attribute, IsAutoCloseConnection = true, };