diff --git a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlueCopy.cs b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlueCopy.cs index e301c2761..4043cd986 100644 --- a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlueCopy.cs +++ b/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 ExecuteBlueCopyAsync() + { + return Task.FromResult(ExecuteBlueCopy()); + } + + public Task 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 ExecuteBlueCopyAsync() - { - return Task.FromResult(ExecuteBlueCopy()); - } - - public Task 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 } } \ No newline at end of file