mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update 达梦
This commit is contained in:
parent
b3e8343c2f
commit
555e495575
@ -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;
|
||||||
|
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user