Browse Source

Optimized code

pull/31/head
sunkaixuan 2 years ago
parent
commit
d9b158bcfa
  1. 8
      Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/ParameterInsertable.cs

8
Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/ParameterInsertable.cs

@ -57,8 +57,12 @@ namespace SqlSugar
this.Context.AddQueue("end \r\n"); this.Context.AddQueue("end \r\n");
result +=this.Context.SaveQueues(false); result +=this.Context.SaveQueues(false);
}); });
if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle) //if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle)
result=objects.Length; // result=objects.Length;
if (result == -1)
{
result = objects.Length;
}
return result; return result;
} }
public async Task<int> DefaultExecuteCommandAsync() public async Task<int> DefaultExecuteCommandAsync()

Loading…
Cancel
Save