protected virtual IDBAccess GetDBAccess(ODAScript ODASql) { IDBAccess DBA = DatabaseRouting(ODASql); if (DBA.ExecutingCommand == null) { DBA.ExecutingCommand = ExecutingCommand; } ExecuteEventArgs arg = new ExecuteEventArgs() { DBA = DBA, SqlParams = ODASql, }; FireODASqlEvent(arg); return(arg.DBA); }
private void FireODASqlEvent(ExecuteEventArgs args) { LastODASQL = args.SqlParams; _CurrentExecutingODASql?.Invoke(this, args); }