sqlsugarScope

master
lxw 6 months ago
parent 0c65da76da
commit 80c1fca70d

@ -133,7 +133,7 @@ public class CarController : ControllerBase
return true; return true;
} }
/// <summary> /// <summary>
/// 清空数据 /// 清空数据
/// </summary> /// </summary>

@ -15,7 +15,7 @@ builder.Host.ConfigureContainer<ContainerBuilder>(cb =>
{ {
cb.Register(c => cb.Register(c =>
{ {
var db = new SqlSugarClient(new ConnectionConfig var db = new SqlSugarScope(new ConnectionConfig
{ {
ConfigId = AppSettingsConstVars.ConfigId, ConfigId = AppSettingsConstVars.ConfigId,
ConnectionString = AppSettingsConstVars.DbSqlConnection, // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD> ConnectionString = AppSettingsConstVars.DbSqlConnection, // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>

Loading…
Cancel
Save