Update Oracle BulkCopyUpdate

This commit is contained in:
sunkaixuan
2024-04-11 19:33:14 +08:00
parent 3071baa992
commit 990375c721
2 changed files with 5 additions and 0 deletions

View File

@@ -344,6 +344,10 @@ namespace SqlSugar
if (col.DataType == UtilConstants.StringType) if (col.DataType == UtilConstants.StringType)
{ {
item[col.ColumnName] = string.Empty; item[col.ColumnName] = string.Empty;
if (this.queryable?.SqlBuilder?.SqlParameterKeyWord == ":")
{
item[col.ColumnName] = " ";
};
} }
else if (col.DataType == UtilConstants.DateType) else if (col.DataType == UtilConstants.DateType)
{ {

View File

@@ -9,6 +9,7 @@ namespace SqlSugar
{ {
public class OracleFastBuilder : FastBuilder, IFastBuilder public class OracleFastBuilder : FastBuilder, IFastBuilder
{ {
public override bool IsActionUpdateColumns { get; set; } = true;
public override DbFastestProperties DbFastestProperties { get; set; } = new DbFastestProperties() public override DbFastestProperties DbFastestProperties { get; set; } = new DbFastestProperties()
{ {
IsMerge = true IsMerge = true