mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
update demo
This commit is contained in:
@@ -9,18 +9,18 @@ namespace Test
|
||||
static void Main(string[] args)
|
||||
{
|
||||
JsonClient jsonToSqlClient = new JsonClient();
|
||||
//jsonToSqlClient.Context = new SqlSugarClient(new ConnectionConfig()
|
||||
//{
|
||||
// DbType = DbType.SqlServer,
|
||||
// IsAutoCloseConnection = true,
|
||||
// ConnectionString = "server=.;uid=sa;pwd=sasa;database=SQLSUGAR4XTEST"
|
||||
//});
|
||||
jsonToSqlClient.Context = new SqlSugarClient(new ConnectionConfig()
|
||||
{
|
||||
DbType = DbType.MySql,
|
||||
DbType = DbType.SqlServer,
|
||||
IsAutoCloseConnection = true,
|
||||
ConnectionString = "server=localhost;Database=SqlSugar4xTest;Uid=root;Pwd=haosql"
|
||||
}); ;
|
||||
ConnectionString = "server=.;uid=sa;pwd=sasa;database=SQLSUGAR4XTEST"
|
||||
});
|
||||
//jsonToSqlClient.Context = new SqlSugarClient(new ConnectionConfig()
|
||||
//{
|
||||
// DbType = DbType.MySql,
|
||||
// IsAutoCloseConnection = true,
|
||||
// ConnectionString = "server=localhost;Database=SqlSugar4xTest;Uid=root;Pwd=haosql"
|
||||
//}); ;
|
||||
TestHelper.InitDatabase(jsonToSqlClient);
|
||||
|
||||
jsonToSqlClient.Context.Aop.OnLogExecuted = (sql, p) =>
|
||||
|
Reference in New Issue
Block a user