Example #1
0
 public void Delete(Item item)
 {
     EfDbSet.Remove(item);
 }
 public void Delete(Employee employee)
 {
     EfDbSet.Remove(employee);
 }
Example #3
0
 public async Task Insert(Item item)
 {
     await EfDbSet.AddAsync(item);
 }
Example #4
0
 public async Task Insert(Order order)
 {
     await EfDbSet.AddAsync(order);
 }
Example #5
0
 public override IQueryable <Show> GetAllAsync()
 {
     return(EfDbSet
            .Include(x => x.Sessions)
            .AsNoTracking());
 }
 public void Delete(SalesOrderItem salesOrderItem)
 {
     EfDbSet.Remove(salesOrderItem);
 }
Example #7
0
 public override IQueryable <OrderDetail> GetAll()
 {
     return(EfDbSet.Include(r => r.Product));
 }
Example #8
0
 public async Task Insert(Revenue revenue)
 {
     await EfDbSet.AddAsync(revenue);
 }
Example #9
0
 public void Delete(Revenue revenue)
 {
     EfDbSet.Remove(revenue);
 }
Example #10
0
 public void Delete(Customer customer)
 {
     EfDbSet.Remove(customer);
 }
Example #11
0
 public override IQueryable <Revenue> GetAll()
 {
     return(EfDbSet.Include(s => s.SalesOrder).Include(c => c.SalesOrder.Customer));
 }
Example #12
0
 public async Task Insert(Customer customer)
 {
     await EfDbSet.AddAsync(customer);
 }
Example #13
0
 public void Delete(SalesOrder salesOrder)
 {
     EfDbSet.Remove(salesOrder);
 }
Example #14
0
 public async Task Insert(SalesOrder salesOrder)
 {
     await EfDbSet.AddAsync(salesOrder);
 }
 public override IQueryable <SalesOrderItem> GetAll()
 {
     return(EfDbSet.Include(i => i.Item).Include(s => s.SalesOrder).Include(c => c.SalesOrder.Customer));
 }
Example #16
0
        public override IDataQueryable <Order> GetAll()
        {
            IDataQueryable <Order> order = new DataQueryable <Order>(EfDbSet.Include("Customer").OrderByDescending(o => o.OrderDate));

            return(order);
        }
 public async Task Insert(SalesOrderItem salesOrderItem)
 {
     await EfDbSet.AddAsync(salesOrderItem);
 }
 public override IQueryable <Order> GetAll()
 {
     return(EfDbSet.Include("Customer"));
 }
 public IQueryable <Order> GetForClient(string companyName)
 {
     return(EfDbSet.Where(o => o.Customer.CompanyName == companyName));
 }
 public override IOrderedQueryable <Order> GetAll()
 {
     return(EfDbSet.Include("Customer").OrderByDescending(o => o.OrderDate));
 }
Example #21
0
 public override IQueryable <Order> GetAll()
 {
     return(EfDbSet.Include("Customer").Include("Employee").Include("Shipper"));
 }
 public async Task Insert(Employee employee)
 {
     await EfDbSet.AddAsync(employee);
 }
Example #23
0
 public void Delete(Order order)
 {
     EfDbSet.Remove(order);
 }
Example #24
0
 public override Task <Show> GetById(object id)
 {
     return(EfDbSet
            .Include(x => x.Sessions)
            .FirstOrDefaultAsync(x => x.Id == (int)id));
 }