Beispiel #1
0
        public static void Seed(AppDbcontext context)
        {
            if (context.Lights.Any())
            {
                return;
            }

            context.AddRange
            (
            );
            context.SaveChanges();
        }
Beispiel #2
0
 public LightRepository(AppDbcontext appDbcontext)
 {
     _context = appDbcontext;
 }