Browse Source

code optimization

pull/1/MERGE
SUNKAIXUAN 4 years ago
parent
commit
d9c3013fa3
  1. 33
      Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlueCopy.cs

33
Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlueCopy.cs

@ -25,13 +25,12 @@ namespace SqlSugar
this.Builder = builder;
this.Entitys = entitys;
}
public bool ExecuteBlueCopy(string chara)
public bool ExecuteBlueCopy(string characterSet)
{
this.Chara = chara;
this.Chara = characterSet;
return ExecuteBlueCopy();
}
public bool ExecuteBlueCopy()
{
var IsBulkLoad = false;
@ -112,29 +111,30 @@ namespace SqlSugar
return IsBulkLoad; ;
}
public Task<bool> ExecuteBlueCopyAsync()
{
return Task.FromResult(ExecuteBlueCopy());
}
public Task<bool> ExecuteBlueCopyAsync(string characterSet)
{
this.Chara = characterSet;
return Task.FromResult(ExecuteBlueCopy());
}
#region Helper
private string GetChara()
{
if (this.Chara == null)
{
return "UTF8";
}
else
else
{
return this.Chara;
}
}
public Task<bool> ExecuteBlueCopyAsync()
{
return Task.FromResult(ExecuteBlueCopy());
}
public Task<bool> ExecuteBlueCopyAsync(string chara)
{
this.Chara = chara;
return Task.FromResult(ExecuteBlueCopy());
}
private void CloseDb()
{
if (this.Context.CurrentConnectionConfig.IsAutoCloseConnection && this.Context.Ado.Transaction == null)
@ -169,6 +169,7 @@ namespace SqlSugar
sb.AppendLine();
}
return sb.ToString();
}
}
#endregion
}
}
Loading…
Cancel
Save