protected DataSaverBase([NotNull] Type savingType, [NotNull] ResultTableDefinition resultTableDefinition, [CanBeNull] SqlResultLoggingService srls) { SavingType = savingType; //check if no readonly properties CheckType(savingType); ResultTableDefinition = resultTableDefinition; _srls = srls; }
public EnergyFileColumns([NotNull] SqlResultLoggingService srls, [NotNull] HouseholdKey key, [NotNull] CalcParameters calcParameters) { Key = key; _calcParameters = calcParameters; ColumnEntryLogger cel = new ColumnEntryLogger(srls); _columnEntries = cel.Read(key); foreach (ColumnEntry entry in _columnEntries) { if (entry.HouseholdKey != key && key != Constants.GeneralHouseholdKey) { continue; } if (!_columnEntriesByColumn.ContainsKey(entry.LoadType)) { _columnEntriesByColumn.Add(entry.LoadType, new Dictionary <int, ColumnEntry>()); ColumnCountByLoadType.Add(entry.LoadType, 0); } _columnEntriesByColumn[entry.LoadType].Add(entry.Column, entry); ColumnCountByLoadType[entry.LoadType]++; } }
public CalcDataRepository([NotNull] SqlResultLoggingService srls) { _srls = srls; CarpetPlotColumnWidth = 5; }