public UnitOfWork(ACEContext context) { System.Data.Entity.Database.SetInitializer <ACEContext>(null); _context = context; Events = new EventRepository(_context); Teams = new TeamRepository(_context); Staffs = new StaffRepository(_context); PitStops = new PitStopRepository(_context); //Authors = new PitStopRepository(_context); }
public PitStopRepository(ACEContext context) : base(context) { }
public TeamRepository(ACEContext context) : base(context) { }
public EventRepository(ACEContext context) : base(context) { }
public StaffRepository(ACEContext context) : base(context) { }