Browse Source

-

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
914f6cae5f
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs
  2. 2
      Src/Asp.Net/SqlSugar/Abstract/AopProvider/AopProvider.cs
  3. 2
      Src/Asp.Net/SqlSugar/Infrastructure/SqlSugarAccessory.cs
  4. 2
      Src/Asp.Net/SqlSugar/Interface/IAdo.cs

2
Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs

@ -57,7 +57,7 @@ namespace SqlSugar
}
public virtual int CommandTimeOut { get; set; }
public virtual CommandType CommandType { get; set; }
public virtual bool IsEnableLogEvent { get; set; }
public virtual bool IsEnableLogEvent { get => this.Context.IsEnableLogEvent; set => this.Context.IsEnableLogEvent = value; }
public virtual bool IsClearParameters { get; set; }
public virtual Action<string, SugarParameter[]> LogEventStarting=> this.Context.LogEventStarting;
public virtual Action<string, SugarParameter[]> LogEventCompleted => this.Context.LogEventCompleted;

2
Src/Asp.Net/SqlSugar/Abstract/AopProvider/AopProvider.cs

@ -11,7 +11,7 @@ namespace SqlSugar
public AopProvider(SqlSugarContext context)
{
this.Context = context;
this.Context.Ado.IsEnableLogEvent = true;
this.Context.IsEnableLogEvent = true;
}
private SqlSugarContext Context { get; set; }
public Action<DiffLogModel> OnDiffLogEvent { set { this.Context.DiffLogEvent = value; } }

2
Src/Asp.Net/SqlSugar/Infrastructure/SqlSugarAccessory.cs

@ -22,6 +22,8 @@ namespace SqlSugar
_Context = value;
}
}
public bool IsEnableLogEvent { get; set; }
public ConnectionConfig CurrentConnectionConfig { get; set; }
public Dictionary<string, object> TempItems { get; set; }
public bool IsSystemTablesConfig { get { return this.CurrentConnectionConfig.InitKeyType == InitKeyType.SystemTable; } }

2
Src/Asp.Net/SqlSugar/Interface/IAdo.cs

@ -22,7 +22,7 @@ namespace SqlSugar
IDataParameterCollection DataReaderParameters { get; set; }
CommandType CommandType { get; set; }
bool IsEnableLogEvent { get; set; }
bool IsDisableMasterSlaveSeparation { get; set; }
bool IsClearParameters { get; set; }
int CommandTimeOut { get; set; }

Loading…
Cancel
Save