public void UpdateConstellations(List <Constellation> constellations) { using (var context = new ExoContext()) { context.Database.EnsureDeleted(); context.Database.EnsureCreated(); context.Constellations.AddRange(constellations); context.Stars.Add(OurSolarSystem()); context.SaveChanges(); } }
public StarService(ExoContext context) { _context = context; }
public StatisticsService(ExoContext context, IMemoryCache memoryCache) { _cache = memoryCache; _context = context; }
public ConstellationService(ExoContext context) { _context = context; }
public ChartService(ExoContext context, IHostingEnvironment env) { _context = context; _env = env; }
public PlanetService(ExoContext context) { _context = context; }