Synchronization code

This commit is contained in:
sunkaixuan
2024-02-03 12:48:01 +08:00
parent f031d391f0
commit 821f31add7
3 changed files with 7 additions and 1 deletions

View File

@@ -210,6 +210,11 @@ namespace SqlSugar
} }
private DataTable GetCopyWriteDataTable(DataTable dt) private DataTable GetCopyWriteDataTable(DataTable dt)
{ {
var builder = GetBuider();
if (builder.DbFastestProperties?.IsNoCopyDataTable == true)
{
return dt;
}
DataTable tempDataTable = null; DataTable tempDataTable = null;
if (AsName == null) if (AsName == null)
{ {

View File

@@ -12,5 +12,6 @@ namespace SqlSugar
public string[] WhereColumns { get; set; } public string[] WhereColumns { get; set; }
public bool IsOffIdentity { get; set; } public bool IsOffIdentity { get; set; }
public bool IsMerge { get; set; } public bool IsMerge { get; set; }
public bool IsNoCopyDataTable { get; set; }
} }
} }

View File

@@ -16,7 +16,7 @@ namespace SqlSugar
public string CharacterSet { get; set; } public string CharacterSet { get; set; }
private DataTable UpdateDataTable { get; set; } private DataTable UpdateDataTable { get; set; }
public bool IsActionUpdateColumns { get; set; } public bool IsActionUpdateColumns { get; set; }
public DbFastestProperties DbFastestProperties { get; set; } = new DbFastestProperties(); public DbFastestProperties DbFastestProperties { get; set; } = new DbFastestProperties() { IsNoCopyDataTable=true};
public SqliteFastBuilder(EntityInfo entityInfo) public SqliteFastBuilder(EntityInfo entityInfo)
{ {
this.entityInfo = entityInfo; this.entityInfo = entityInfo;