public static DbAccessor CreateDbAccessor(string connectionString, string providerName)
        {
            DbAccessor dba = NewDbAccessor(connectionString, providerName);

            if (dba != null)
            {
                IEnumerable <IDbExecuteHandler> dbExecuteHandlers = HandlerFactory.GetDbExecuteHandlers();

                foreach (IDbExecuteHandler handler in dbExecuteHandlers)
                {
                    dba.PreCommandExecute += handler.HandleExecute;
                }
            }

            return(dba);
        }