AgentRepository.cs 466 B

12345678910111213141516
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data.Entity;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace WPF.Framework.Models.Repository
  8. {
  9. class AgentRepository : Repository<Agent>
  10. {
  11. public AgentRepository(AgentsDbContext context) : base(context) { }
  12. public override IQueryable<Agent> Items => context.Set<Agent>().Include(item => item.ProductSale).Include(item => item.AgentType);
  13. }
  14. }