public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ForecastDate?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Units?.GetHashCode() ?? 0); return(hashCode); }
private ForecastOverviewForecast CreateForecast(ForecastDate date, ForecastType forecastType, int?dedicatedHours = null) { var forecast = new ForecastOverviewForecast { Date = date, ForecastType = forecastType, DedicatedForecastTypeHours = dedicatedHours }; forecast.DisplayHandler = new SupportsProjectsWithFocusDisplayHandler(forecast, null, null, _project.Id); return(forecast); }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (AvgDailyDemandForecast?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ComputedStock?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (NewOrder?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ForecastDate?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Units?.GetHashCode() ?? 0); return(hashCode); }
public void SaveForecastDate(ForecastDate date) { var op = TableOperation.InsertOrMerge(date); context.ForecastDateTable.Execute(op); }