public static void Initialize(ComputerStoreContext context)
        {
            context.Database.EnsureCreated();

            // Look for any computers
            if (context.Computers.Any())
            {
                return;   // DB has been seeded
            }

            var computers = new Entities.Computer[]
            {
                new Entities.Computer {
                    Brand = "HP", RAM = 16
                }
            };

            foreach (var c in computers)
            {
                context.Computers.Add(c);
            }
            context.SaveChanges();
        }
 public SqlRepository(ComputerStoreContext context)
 {
     Context = context;
     DbSet   = context.Set <T>();
 }