From 80c1fca70dc33820fe71bc84e78f498c0f24b63a Mon Sep 17 00:00:00 2001 From: lxw Date: Tue, 28 May 2024 21:31:33 +0800 Subject: [PATCH] sqlsugarScope --- WebStarter/Controllers/CarController.cs | 2 +- WebStarter/Program.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WebStarter/Controllers/CarController.cs b/WebStarter/Controllers/CarController.cs index 41ceedd..c67712d 100644 --- a/WebStarter/Controllers/CarController.cs +++ b/WebStarter/Controllers/CarController.cs @@ -133,7 +133,7 @@ public class CarController : ControllerBase return true; } - + /// /// 清空数据 /// diff --git a/WebStarter/Program.cs b/WebStarter/Program.cs index ecd0646..3d58512 100644 --- a/WebStarter/Program.cs +++ b/WebStarter/Program.cs @@ -15,7 +15,7 @@ builder.Host.ConfigureContainer(cb => { cb.Register(c => { - var db = new SqlSugarClient(new ConnectionConfig + var db = new SqlSugarScope(new ConnectionConfig { ConfigId = AppSettingsConstVars.ConfigId, ConnectionString = AppSettingsConstVars.DbSqlConnection, // �������ݿ������ַ���