示例#1
0
 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);
 }
示例#2
0
 public PitStopRepository(ACEContext context)
     : base(context)
 {
 }
 public TeamRepository(ACEContext context)
     : base(context)
 {
 }
 public EventRepository(ACEContext context)
     : base(context)
 {
 }
 public StaffRepository(ACEContext context)
     : base(context)
 {
 }