public void UpdateMarket(int MarketId) { MarketUpdates mu = new MarketUpdates(); mu.UpdateMarketHistorical(DateTime.Now.AddYears(-1), DateTime.Now, MarketId); }
public void UpdateMarkets() { MarketUpdates mu = new MarketUpdates(); using (MarketsDBEntities mde = new MarketsDBEntities()) { foreach (var m in mde.Markets) { Console.WriteLine("Updating data for " + m.Name); mu.UpdateMarketHistorical(DateTime.Now.AddYears(-5), DateTime.Now, m.MarketId); } } }
public void GapFinders() { MarketUpdates mu = new MarketUpdates(); using (MarketsDBEntities mde = new MarketsDBEntities()) { foreach (var m in mde.Markets) { GapFinder(m.MarketId); } } }