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
|
|
|
|
{
|
|
|
|
|
public static string connectionString = "server=.;uid=sa;pwd=sasa;database=SqlSugarTest";
|
2017-09-21 14:46:29 +08:00
|
|
|
|
public static SqlSugarClient GetSugarConn()
|
|
|
|
|
{
|
|
|
|
|
return new SqlSugarClient(new ConnectionConfig() { InitKeyType = InitKeyType.SystemTable, ConnectionString = Config.connectionString, DbType = DbType.SqlServer });
|
|
|
|
|
}
|
2017-09-21 13:52:52 +08:00
|
|
|
|
}
|
|
|
|
|
}
|