public DbSolradForecast(LocationForecasts l, SolradForecast f)
        {
            //LocationForecasts = l;

            Ghi                  = f.Ghi;
            Ghi90                = f.Ghi90;
            Ghi10                = f.Ghi10;
            ClearSkyGhi          = f.ClearSkyGhi;
            ClearSkyDni          = f.ClearSkyDni;
            ClearSkyDhi          = f.ClearSkyDhi;
            Ebh                  = f.Ebh;
            Ebh10                = f.Ebh10;
            Ebh90                = f.Ebh90;
            Dni                  = f.Dni;
            Dni10                = f.Dni10;
            Dni90                = f.Dni90;
            AirTemp              = f.AirTemp;
            Zenith               = f.Zenith;
            Azimuth              = f.Azimuth;
            CloudOpacity         = f.CloudOpacity;
            SnowClearnessRooftop = f.SnowClearnessRooftop;
            SnowClearnessUtility = f.SnowClearnessUtility;
            Period               = f.Period;
            PeriodEnd            = f.PeriodEnd;
        }
        public ulong IngestSingle(SolradNwpForecast ingested, SolarRadiationDataContext dbContext, ulong count, bool saveChanges = true)
        {
            var location = new LocationForecasts(ingested);

            dbContext.Locations.Add(location);
            if (saveChanges)
            {
                dbContext.SaveChanges();

                foreach (var f in dbContext.Forecasts)
                {
                    f.LocationForecastId = location.Id;
                }
                dbContext.SaveChanges();
            }
            return(count + 1);
        }