You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
597 B

2 years ago
  1. using OrmTest.Models;
  2. using SqlSugar;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OrmTest.UnitTest
  9. {
  10. public class AutoClose : UnitTestBase
  11. {
  12. public AutoClose(int eachCount)
  13. {
  14. this.Count = eachCount;
  15. }
  16. public void Init()
  17. {
  18. //IsAutoCloseConnection
  19. for (int i = 0; i < this.Count; i++)
  20. {
  21. var db = GetInstance();
  22. var x = db.Queryable<Student>().ToList();
  23. }
  24. }
  25. }
  26. }