mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
-
This commit is contained in:
parent
7a262728bc
commit
a010b6a8d2
@ -9,9 +9,10 @@ namespace PerformanceTest
|
|||||||
public class Config
|
public class Config
|
||||||
{
|
{
|
||||||
public static string connectionString = "server=.;uid=sa;pwd=sasa;database=SqlSugarTest";
|
public static string connectionString = "server=.;uid=sa;pwd=sasa;database=SqlSugarTest";
|
||||||
|
public static ConnectionConfig SugarConfig =new ConnectionConfig() { InitKeyType = InitKeyType.SystemTable, ConnectionString = Config.connectionString, DbType = DbType.SqlServer };
|
||||||
public static SqlSugarClient GetSugarConn()
|
public static SqlSugarClient GetSugarConn()
|
||||||
{
|
{
|
||||||
return new SqlSugarClient(new ConnectionConfig() { InitKeyType = InitKeyType.SystemTable, ConnectionString = Config.connectionString, DbType = DbType.SqlServer });
|
return new SqlSugarClient(SugarConfig);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user