2017-09-21 14:46:29 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
using System;
|
2017-09-21 13:52:52 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2017-09-21 14:24:53 +08:00
|
|
|
|
namespace PerformanceTest
|
2017-09-21 13:52:52 +08:00
|
|
|
|
{
|
2017-09-21 14:15:16 +08:00
|
|
|
|
public class Config
|
2017-09-21 13:52:52 +08:00
|
|
|
|
{
|
2019-12-12 19:26:15 +08:00
|
|
|
|
public static string connectionString = "server=.;uid=sa;pwd=haosql;database=SqlSugarTest";
|
2017-09-29 10:56:37 +08:00
|
|
|
|
public static ConnectionConfig SugarConfig =new ConnectionConfig() { IsAutoCloseConnection=true,InitKeyType = InitKeyType.SystemTable, ConnectionString = Config.connectionString, DbType = DbType.SqlServer };
|
2017-09-21 14:46:29 +08:00
|
|
|
|
public static SqlSugarClient GetSugarConn()
|
|
|
|
|
{
|
2017-09-21 15:09:39 +08:00
|
|
|
|
return new SqlSugarClient(SugarConfig);
|
2017-09-21 14:46:29 +08:00
|
|
|
|
}
|
2017-09-21 13:52:52 +08:00
|
|
|
|
}
|
|
|
|
|
}
|