private ShoesDbContext _context; // Dependecy Injection public UnitOfWork_Class(ShoesDbContext context) { _context = context; // CategoryDal = new EfCategoryDal(); BrandDal = new EfBrandDal(); CarouselDal = new EfCarouselDal(); ProductDal = new EfProductDal(); ProductSizeDal = new EfProductSizeDal(); RoleDal = new EfRoleDal(); SizeDal = new EfSizeDal(); UserDal = new EfUserDal(); }