ProductDataModel.cs 498 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using InABox.Core;
  5. namespace Comal.Classes
  6. {
  7. // At this point in time, we are not dealing with ProductPriceComponent
  8. public class ProductDataModel : BaseDataModel<Product>
  9. {
  10. public ProductDataModel(Filter<Product> filter) : base(filter)
  11. {
  12. AddChildTable<Product, ProductPriceComponent>(x => x.ID, x => x.Product.ID);
  13. }
  14. public override string Name => "Products";
  15. }
  16. }