Exemplo n.º 1
0
 public SlotManager()
 {
     //context = TypesContainer.GetContext();
     repo            = TypesContainer.GetRepository <Slot>();
     vehicleSlotRepo = TypesContainer.GetRepository <VehicleSlot>();
     context         = vehicleSlotRepo.Context = repo.Context;
 }
Exemplo n.º 2
0
 public EntityRepository(IParkingLotContext context)
 {
     if (context == null)
     {
         throw new NullReferenceException("ITransactionContext not set");
     }
     _context = context as IParkingLotContext;
 }
 public VehicleRepository(IParkingLotContext context) : base(context)
 {
 }
Exemplo n.º 4
0
 public UsersRepository(IParkingLotContext context) : base(context)
 {
 }
 public UserManager()
 {
     context  = TypesContainer.GetContext();
     userRepo = TypesContainer.GetRepository <User>();
 }
Exemplo n.º 6
0
 public SlotsRepository(IParkingLotContext context) : base(context)
 {
 }
 public VehicleManager()
 {
     context = TypesContainer.GetContext();
     repo    = TypesContainer.GetRepository <Vehicle>();
 }