Update 达梦

This commit is contained in:
sunkaixuan 2025-05-30 16:57:32 +08:00
parent b3e8343c2f
commit 555e495575
3 changed files with 7 additions and 1 deletions

View File

@ -226,6 +226,10 @@ namespace SqlSugar
private DataTable GetCopyWriteDataTable(DataTable dt) private DataTable GetCopyWriteDataTable(DataTable dt)
{ {
var builder = GetBuider(); var builder = GetBuider();
if (builder.DbFastestProperties?.IsConvertDateTimeOffsetToDateTime == true)
{
dt = UtilMethods.ConvertDateTimeOffsetToDateTime(dt);
}
if (builder.DbFastestProperties?.IsNoCopyDataTable == true) if (builder.DbFastestProperties?.IsNoCopyDataTable == true)
{ {
return dt; return dt;

View File

@ -13,5 +13,6 @@ namespace SqlSugar
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; } public bool IsNoCopyDataTable { get; set; }
public bool IsConvertDateTimeOffsetToDateTime { get; set; }
} }
} }

View File

@ -13,7 +13,8 @@ namespace SqlSugar
{ {
public override bool IsActionUpdateColumns { get; set; } = true; public override bool IsActionUpdateColumns { get; set; } = true;
public override DbFastestProperties DbFastestProperties { get; set; } = new DbFastestProperties() { public override DbFastestProperties DbFastestProperties { get; set; } = new DbFastestProperties() {
HasOffsetTime=true HasOffsetTime=true,
IsConvertDateTimeOffsetToDateTime=true
}; };
public async Task<int> ExecuteBulkCopyAsync(DataTable dt) public async Task<int> ExecuteBulkCopyAsync(DataTable dt)
{ {