mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-18 05:59:34 +08:00
Update bulk copy
This commit is contained in:
parent
9f172d6b2b
commit
3bf2c7ed74
@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace SqlSugar
|
namespace SqlSugar
|
||||||
{
|
{
|
||||||
public partial class FastestProvider<T> : IFastest<T> where T : class, new()
|
public partial class FastestProvider<T> : IFastest<T> where T : class, new()
|
||||||
@ -88,7 +88,12 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
dt.TableName = GetTableName();
|
dt.TableName = GetTableName();
|
||||||
var columns = entityInfo.Columns;
|
var columns = entityInfo.Columns;
|
||||||
|
if (columns.Where(it=>!it.IsIgnore).Count() > tempDataTable.Columns.Count)
|
||||||
|
{
|
||||||
|
var tempColumns = tempDataTable.Columns.Cast<DataColumn>().Select(it=>it.ColumnName);
|
||||||
|
columns = columns.Where(it => tempColumns.Any(s => s.EqualCase(it.DbColumnName))).ToList();
|
||||||
|
}
|
||||||
var isMySql = this.context.CurrentConnectionConfig.DbType.IsIn(DbType.MySql, DbType.MySqlConnector);
|
var isMySql = this.context.CurrentConnectionConfig.DbType.IsIn(DbType.MySql, DbType.MySqlConnector);
|
||||||
var isSqliteCore = SugarCompatible.IsFramework==false&& this.context.CurrentConnectionConfig.DbType.IsIn(DbType.Sqlite);
|
var isSqliteCore = SugarCompatible.IsFramework==false&& this.context.CurrentConnectionConfig.DbType.IsIn(DbType.Sqlite);
|
||||||
foreach (var item in datas)
|
foreach (var item in datas)
|
||||||
|
Loading…
Reference in New Issue
Block a user