| | |
| | | { |
| | | var memoryCache = o.GetRequiredService<IMemoryCache>(); |
| | | |
| | | // è¿æ¥å符串 |
| | | var listConfig = new List<ConnectionConfig> |
| | | { |
| | | new ConnectionConfig |
| | |
| | | ConfigId = MainDb.CurrentDbConnId, |
| | | ConnectionString = DBContext.GetMainConnectionDb().Connection, |
| | | IsAutoCloseConnection = true, |
| | | DbType = MainDb.DbType, |
| | | //DbType = MainDb.DbType, |
| | | DbType = DBContext.GetMainConnectionDb().DbType, |
| | | |
| | | AopEvents = new AopEvents |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | |
| | | Parallel.For(0, 1, e => |
| | | { |
| | | MiniProfiler.Current.CustomTiming("SQLï¼", GetParas(p) + "ãSQLè¯å¥ãï¼" + sql); |
| | | |
| | | |
| | | }); |
| | | if(AppSettings.GetValue("PrintSql").ObjToBool()) |
| | | { |