Exemplo n.º 1
0
        public ModelLocal(DBandMES dbandMES, DataBaseType type, Logger log)
        {
            _dbandMES = dbandMES;
            ModelParameter dbParam = new ModelParameter {
                DataBaseType = type,
                UserName     = _dbandMES.UserName,
                PassWord     = _dbandMES.PassWord,
                Host         = _dbandMES.IP,
                Port         = _dbandMES.Port,
                DBorService  = _dbandMES.DBName
            };

            InitDataBase(dbParam, log);
        }
Exemplo n.º 2
0
 public void SaveDBandMES(DBandMES dBandMES)
 {
     DBandMES = dBandMES;
     SaveSetting(dBandMES, _dbandMES_xml);
 }