mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 01:47:06 +08:00
Synchronization code
This commit is contained in:
parent
e561d30c75
commit
42542f3456
@ -600,7 +600,7 @@ namespace SqlSugar
|
||||
}
|
||||
private void After(string sql)
|
||||
{
|
||||
if (this.IsEnableDiffLogEvent)
|
||||
if (this.IsEnableDiffLogEvent && !string.IsNullOrEmpty(sql))
|
||||
{
|
||||
var isDisableMasterSlaveSeparation = this.Ado.IsDisableMasterSlaveSeparation;
|
||||
this.Ado.IsDisableMasterSlaveSeparation = true;
|
||||
@ -650,7 +650,7 @@ namespace SqlSugar
|
||||
}
|
||||
private void Before(string sql)
|
||||
{
|
||||
if (this.IsEnableDiffLogEvent)
|
||||
if (this.IsEnableDiffLogEvent&&!string.IsNullOrEmpty(sql))
|
||||
{
|
||||
var isDisableMasterSlaveSeparation = this.Ado.IsDisableMasterSlaveSeparation;
|
||||
this.Ado.IsDisableMasterSlaveSeparation = true;
|
||||
|
Loading…
Reference in New Issue
Block a user