using System.Data.Entity;
using OrderEntryEngine;

namespace OrderEntryDataAccess
{
    public class OrderEntryContext : DbContext
    {
        public OrderEntryContext()
            : base("OrderEntryContext")
        {
            Database.SetInitializer(new OrderEntryInitializer());
            Database.Initialize(true);
        }

        public DbSet<Computer> Computers { get; set; }

        public DbSet<Customer> Customers { get; set; }

        public DbSet<Location> Locations { get; set; }

        public DbSet<Category> Categories { get; set; }

        public DbSet<GraphicsCard> GraphicsCards { get; set; }

        public DbSet<Order> Orders { get; set; }

        public DbSet<OrderLine> Lines { get; set; }

        public DbSet<ComputerCategory> ComputerCategories { get; set; }
    }
}