diff --git a/Src/Asp.Net/MySqlTest/Config.cs b/Src/Asp.Net/MySqlTest/Config.cs index 584e9a85f..f2f301882 100644 --- a/Src/Asp.Net/MySqlTest/Config.cs +++ b/Src/Asp.Net/MySqlTest/Config.cs @@ -27,5 +27,8 @@ namespace OrmTest /// 用有建库权限的数据库账号 /// public static string ConnectionString3 = "server=localhost;Database=SqlSugar4xTest3;Uid=root;Pwd=haosql"; + + + /***注意:如果报错:指字关键词不在字典中这说明需要更新MYSQL.DATA驱动到最新,不报错就不需要更新***/ } } diff --git a/Src/Asp.Net/SqlServerTest/Config.cs b/Src/Asp.Net/SqlServerTest/Config.cs index 3a8194a1b..bf6bea4e6 100644 --- a/Src/Asp.Net/SqlServerTest/Config.cs +++ b/Src/Asp.Net/SqlServerTest/Config.cs @@ -16,16 +16,16 @@ namespace OrmTest /// Account have permission to create database /// 用有建库权限的数据库账号 /// - public static string ConnectionString = "server=.;uid=sa;pwd=haosql;database=SQLSUGAR4XTEST"; + public static string ConnectionString = "server=.;uid=sa;pwd=@jhl85661501;database=SQLSUGAR4XTEST"; /// /// Account have permission to create database /// 用有建库权限的数据库账号 /// - public static string ConnectionString2 = "server=.;uid=sa;pwd=haosql;database=SQLSUGAR4XTEST2"; + public static string ConnectionString2 = "server=.;uid=sa;pwd=@jhl85661501;database=SQLSUGAR4XTEST2"; /// /// Account have permission to create database /// 用有建库权限的数据库账号 /// - public static string ConnectionString3 = "server=.;uid=sa;pwd=haosql;database=SQLSUGAR4XTEST3"; + public static string ConnectionString3 = "server=.;uid=sa;pwd=@jhl85661501;database=SQLSUGAR4XTEST3"; } } diff --git a/Src/Asp.Net/SqlServerTest/UnitTest/UThread.cs b/Src/Asp.Net/SqlServerTest/UnitTest/UThread.cs index 48bf67da5..5972a5360 100644 --- a/Src/Asp.Net/SqlServerTest/UnitTest/UThread.cs +++ b/Src/Asp.Net/SqlServerTest/UnitTest/UThread.cs @@ -309,8 +309,8 @@ namespace OrmTest { for (int i = 0; i < 100; i++) { - singleDb.Insertable(new Order() { Name = "test", CreateTime = DateTime.Now }).ExecuteCommandAsync().Wait(); - System.Threading.Thread.Sleep(1); + //singleDb.Insertable(new Order() { Name = "test", CreateTime = DateTime.Now }).ExecuteCommandAsync().Wait(); + //System.Threading.Thread.Sleep(1); No Support } }); @@ -318,8 +318,8 @@ namespace OrmTest { for (int i = 0; i < 100; i++) { - singleDb.Insertable(new Order() { Name = "test2", CreateTime = DateTime.Now }).ExecuteCommandAsync().Wait(); - System.Threading.Thread.Sleep(10); + //singleDb.Insertable(new Order() { Name = "test2", CreateTime = DateTime.Now }).ExecuteCommandAsync().Wait(); + //System.Threading.Thread.Sleep(10); No Support } }); @@ -327,8 +327,8 @@ namespace OrmTest { for (int i = 0; i < 100; i++) { - singleDb.Insertable(new Order() { Name = "test3", CreateTime = DateTime.Now }).ExecuteCommandAsync().Wait(); - System.Threading.Thread.Sleep(6); + //singleDb.Insertable(new Order() { Name = "test3", CreateTime = DateTime.Now }).ExecuteCommandAsync().Wait(); + //System.Threading.Thread.Sleep(6); No Support } });