ProductModel.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Linq;
  3. using System.Linq.Expressions;
  4. using Comal.Classes;
  5. using InABox.Core;
  6. using System.Diagnostics.CodeAnalysis;
  7. using InABox.Mobile;
  8. using Syncfusion.XForms.EffectsView;
  9. namespace PRS.Mobile
  10. {
  11. public class ProductModel : CoreRepository<ProductModel, ProductShell, Product>
  12. {
  13. public ProductModel(IModelHost host, Func<Filter<Product>> filter): base(host, filter)
  14. {
  15. }
  16. // when tested agains the Com-Al Database, this resulted in 300MB+ of
  17. // data and a 20+second lag in responsiveness, so its not gonna fly here.
  18. //protected override Expression<Func<Product, object>> ImageColumn => x => x.Image.ID;
  19. protected override Expression<Func<Product, object>> ImageColumn => x => x.Image.ID;
  20. }
  21. public class ProductLookupModel : CoreRepository<ProductLookupModel, ProductLookupShell, Product>
  22. {
  23. public ProductLookupModel(IModelHost host, Func<Filter<Product>> filter): base(host, filter)
  24. {
  25. }
  26. }
  27. }