Beispiel #1
0
        public UnitOfWork(AutoniverseContext context)
        {
            this.context  = context;
            Cars          = new CarRepository(context);
            CarCategories = new CarCategoryRepository(context);

            Motorcycles          = new MotorcycleRepository(context);
            MotorcycleCategories = new MotorcycleCategoryRepository(context);
        }
 public CarRepository(AutoniverseContext context) : base(context)
 {
 }
 public MotorcycleCategoryRepository(AutoniverseContext context) : base(context)
 {
 }