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.
18 lines
612 B
18 lines
612 B
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace PerformanceTest
|
|
{
|
|
public class Config
|
|
{
|
|
public static string connectionString = "server=.;uid=sa;pwd=haosql;database=SqlSugarTest";
|
|
public static ConnectionConfig SugarConfig =new ConnectionConfig() { IsAutoCloseConnection=true,InitKeyType = InitKeyType.SystemTable, ConnectionString = Config.connectionString, DbType = DbType.SqlServer };
|
|
public static SqlSugarClient GetSugarConn()
|
|
{
|
|
return new SqlSugarClient(SugarConfig);
|
|
}
|
|
}
|
|
}
|
|
|