Пример #1
0
        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);
        }
Пример #2
0
 private void FireODASqlEvent(ExecuteEventArgs args)
 {
     LastODASQL = args.SqlParams;
     _CurrentExecutingODASql?.Invoke(this, args);
 }