using System; using System.Collections.Generic; namespace SqlSugar { public class AopProvider { private AopProvider() { } public AopProvider(SqlSugarClient context) { this.Context = context; this.Context.Ado.IsEnableLogEvent = true; } private SqlSugarClient Context { get; set; } public Action OnError { set { this.Context.Ado.ErrorEvent = value; } } public Action OnLogExecuting { set { this.Context.Ado.LogEventStarting = value; } } public Action OnLogExecuted { set { this.Context.Ado.LogEventCompleted = value; } } public Func> OnExecutingChangeSql { set { this.Context.Ado.ProcessingEventStartingSQL = value; } } } }