Beispiel #1
0
        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;
 }
Beispiel #4
0
 public ConstellationService(ExoContext context)
 {
     _context = context;
 }
Beispiel #5
0
        public ChartService(ExoContext context, IHostingEnvironment env)
        {
            _context = context;

            _env = env;
        }
 public PlanetService(ExoContext context)
 {
     _context = context;
 }