|
@ -31,7 +31,7 @@ namespace OrmTest.Demo |
|
|
} |
|
|
} |
|
|
catch (Exception ex) |
|
|
catch (Exception ex) |
|
|
{ |
|
|
{ |
|
|
|
|
|
Console.WriteLine(ex.Message); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
@ -48,6 +48,7 @@ namespace OrmTest.Demo |
|
|
var db2 = GetInstance(); |
|
|
var db2 = GetInstance(); |
|
|
db2.CurrentConnectionConfig.Debugger = new SqlSugar.SugarDebugger() { EnableThreadSecurityValidation = true }; |
|
|
db2.CurrentConnectionConfig.Debugger = new SqlSugar.SugarDebugger() { EnableThreadSecurityValidation = true }; |
|
|
db2.Queryable<Student>().ToList(); |
|
|
db2.Queryable<Student>().ToList(); |
|
|
|
|
|
db2.Queryable<Student>().ToList(); |
|
|
}); |
|
|
}); |
|
|
task2.Start(); |
|
|
task2.Start(); |
|
|
task2.Wait(); |
|
|
task2.Wait(); |
|
|