MES.Service/DB/Repository.cs
@@ -5,7 +5,7 @@ public class Repository<T> : SimpleClient<T> where T : class, new() { public static SqlSugarScope Db = new(new ConnectionConfig protected static SqlSugarScope Db = new(new ConnectionConfig { DbType = DbType.Oracle, ConnectionString = AppsettingsUtility.Settings.DataBaseConn, @@ -25,7 +25,7 @@ if (context == null) Context = Db; } public int UseTransaction(Func<SqlSugarScope, int> action) protected int UseTransaction(Func<SqlSugarScope, int> action) { try {