public void Load()
        {
            foreach (var dataReader in dbBuilder.LoadSettings(MachineName))
            {
                SetFrom(dataReader);
            }

            if (!Id.HasValue)
            {
                Id    = dbBuilder.CreateSettings(MachineName, Folder, MaxDegreeOfParallelism, BatchSize);
                IsNew = true;
            }
        }
Beispiel #2
0
        public void Load()
        {
            foreach (var dataReader in dbBuilder.LoadSettings(MachineName, Version))
            {
                SetFrom(dataReader);
            }

            if (!Id.HasValue)
            {
                Id    = dbBuilder.CreateSettings(MachineName, Folder, 1, Version);
                IsNew = true;
            }
        }
        public void Load()
        {
            //System.IO.File.WriteAllText(@"D:\2.0.0.0\debug.txt", MachineName + "|" + Version);
            foreach (var dataReader in _dbBuilder.LoadSettings(MachineName, Version))
            {
                SetFrom(dataReader);
            }

            if (!Id.HasValue)
            {
                Id    = _dbBuilder.CreateSettings(MachineName, Folder, 1, Version);
                IsNew = true;
            }
        }