예제 #1
0
        public LogMySqlComando(LogMySqlDatabase pDB)
        {
            this.db = pDB;

            CriarComando();
            IncluirTransacao();
        }
예제 #2
0
        public static ILogDatabase Selecionar(string pTipoDB)
        {
            ILogDatabase logDatabase;

            switch (pTipoDB)
            {
            case "sqlserver":
                logDatabase = new LogSqlServerDatabase();
                break;

            case "mysql":
                logDatabase = new LogMySqlDatabase();
                break;

            default:
                logDatabase = null;
                break;
            }

            return(logDatabase);
        }