mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 06:03:09 +08:00
-
This commit is contained in:
@@ -16,16 +16,12 @@ namespace OrmTest.UnitTest
|
||||
}
|
||||
public void Init()
|
||||
{
|
||||
|
||||
//IsAutoCloseConnection
|
||||
for (int i = 0; i < this.Count; i++)
|
||||
{
|
||||
var db = GetInstance();
|
||||
var x = db.Queryable<Student>().ToList();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
public SqlSugarClient GetInstance()
|
||||
{
|
||||
|
||||
@@ -12,16 +12,12 @@ namespace OrmTest.UnitTest
|
||||
{
|
||||
public void Init()
|
||||
{
|
||||
|
||||
//IsAutoCloseConnection
|
||||
for (int i = 0; i < 200; i++)
|
||||
{
|
||||
var db = GetInstance();
|
||||
var x = db.Queryable<Student>().ToList();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
public SqlSugarClient GetInstance()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user