mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 02:14:53 +08:00
Oracle DiffLog BUG
This commit is contained in:
@@ -733,7 +733,7 @@ namespace SqlSugar
|
||||
// return asyncInsertable;
|
||||
//}
|
||||
|
||||
private void After(string sql, long? result)
|
||||
protected void After(string sql, long? result)
|
||||
{
|
||||
if (this.IsEnableDiffLogEvent)
|
||||
{
|
||||
@@ -753,7 +753,7 @@ namespace SqlSugar
|
||||
this.RemoveCacheFunc();
|
||||
}
|
||||
}
|
||||
private void Before(string sql)
|
||||
protected void Before(string sql)
|
||||
{
|
||||
if (this.IsEnableDiffLogEvent)
|
||||
{
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace SqlSugar
|
||||
var count = Ado.ExecuteCommand(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
|
||||
var result = (this.GetIdentityKeys().IsNullOrEmpty() || count == 0) ? 0 : GetSeqValue(GetSeqName()).ObjToInt();
|
||||
this.Context.Ado.IsDisableMasterSlaveSeparation = isDisableMasterSlaveSeparation;
|
||||
|
||||
After(sql,result);
|
||||
AutoEnd(oldIsAuto);
|
||||
return result;
|
||||
}
|
||||
@@ -52,7 +52,7 @@ namespace SqlSugar
|
||||
var count = Ado.ExecuteCommand(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
|
||||
var result = (this.GetIdentityKeys().IsNullOrEmpty() || count == 0) ? 0 : Convert.ToInt64(GetSeqValue(GetSeqName()));
|
||||
this.Context.Ado.IsDisableMasterSlaveSeparation = isDisableMasterSlaveSeparation;
|
||||
|
||||
After(sql, result);
|
||||
AutoEnd(oldIsAuto);
|
||||
return result;
|
||||
}
|
||||
@@ -70,7 +70,7 @@ namespace SqlSugar
|
||||
var count = await Ado.ExecuteCommandAsync(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
|
||||
var result = (this.GetIdentityKeys().IsNullOrEmpty() || count == 0) ? 0 : GetSeqValue(GetSeqName()).ObjToInt();
|
||||
this.Context.Ado.IsDisableMasterSlaveSeparation = isDisableMasterSlaveSeparation;
|
||||
|
||||
After(sql, result);
|
||||
AutoEnd(oldIsAuto);
|
||||
return result;
|
||||
}
|
||||
@@ -88,7 +88,7 @@ namespace SqlSugar
|
||||
var count = await Ado.ExecuteCommandAsync(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
|
||||
var result = (this.GetIdentityKeys().IsNullOrEmpty() || count == 0) ? 0 : Convert.ToInt64(GetSeqValue(GetSeqName()));
|
||||
this.Context.Ado.IsDisableMasterSlaveSeparation = isDisableMasterSlaveSeparation;
|
||||
|
||||
After(sql, result);
|
||||
AutoEnd(oldIsAuto);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user