ProductModel.cs 863 B

123456789101112131415161718192021222324
  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 = null, Func<string>? cachefilename = null) : base(host, filter, cachefilename)
  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. }