• 1405/08/13

اصلاح در بخش ProductRepository :

سلام وقت بخیر در جلسه 78 به یک موردی برخورد کردم که فکر میکنم باید اصلاح بشه

در ProductRepository باید از GenericRepository ارث بری بکنه نه از IGenericRepository که دوباره متدهای IGenericRepository داخل ProductRepository پیاده سازی نشن

 

    public class ProductRepository : GenericRepository<Product>
    {
        public ProductRepository(EshopDbContext context) : base(context)
        {
        }
    }
  • 1405/08/13
  • ساعت 12:40

سلام 

ممنون اطلاع دادید