public UsuarioDAO() { mySQL = new MySQL(); ConexaoDAO conDAO = new ConexaoDAO(); ConexaoDTO conDTO = conDAO.ObterConexao(); if (conDTO != null) { mySQL.SetStringConexao(conDTO.IP, Convert.ToInt32(conDTO.Porta), conDTO.Usuario, conDTO.Senha, conDTO.NomeDB); } }
public ProdutoDAO() { pSqlLite = new SQLiteDB(base.NomeDB); mySQL = new MySQL(); ConexaoDAO conDAO = new ConexaoDAO(); ConexaoDTO conDTO = conDAO.ObterConexao(); if (conDTO != null) { mySQL.SetStringConexao(conDTO.IP, Convert.ToInt32(conDTO.Porta), conDTO.Usuario, conDTO.Senha, conDTO.NomeDB); } DefinirSQLs(); }
public ConexaoBO() { DAO = new ConexaoDAO(); }