Update demo

This commit is contained in:
sunkaixuan 2019-09-18 18:19:54 +08:00
parent 59887d929c
commit 52bc6fa734
3 changed files with 12 additions and 9 deletions

View File

@ -27,5 +27,8 @@ namespace OrmTest
/// 用有建库权限的数据库账号
/// </summary>
public static string ConnectionString3 = "server=localhost;Database=SqlSugar4xTest3;Uid=root;Pwd=haosql";
/***注意如果报错指字关键词不在字典中这说明需要更新MYSQL.DATA驱动到最新不报错就不需要更新***/
}
}

View File

@ -16,16 +16,16 @@ namespace OrmTest
/// Account have permission to create database
/// 用有建库权限的数据库账号
/// </summary>
public static string ConnectionString = "server=.;uid=sa;pwd=haosql;database=SQLSUGAR4XTEST";
public static string ConnectionString = "server=.;uid=sa;pwd=@jhl85661501;database=SQLSUGAR4XTEST";
/// <summary>
/// Account have permission to create database
/// 用有建库权限的数据库账号
/// </summary>
public static string ConnectionString2 = "server=.;uid=sa;pwd=haosql;database=SQLSUGAR4XTEST2";
public static string ConnectionString2 = "server=.;uid=sa;pwd=@jhl85661501;database=SQLSUGAR4XTEST2";
/// <summary>
/// Account have permission to create database
/// 用有建库权限的数据库账号
/// </summary>
public static string ConnectionString3 = "server=.;uid=sa;pwd=haosql;database=SQLSUGAR4XTEST3";
public static string ConnectionString3 = "server=.;uid=sa;pwd=@jhl85661501;database=SQLSUGAR4XTEST3";
}
}

View File

@ -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
}
});