collectTableRepo.cs 971 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Generate By EToy
  2. // Don't Edit It!!
  3. using System.Collections.Generic;
  4. using XGame.Framework.Database;
  5. namespace XGame.Database
  6. {
  7. public partial class collectTableRepo : TableRepository<collectTable, collectTableRepo>
  8. {
  9. public static List<collectTable> GetAllPartnerCollectList()
  10. {
  11. var collectList = GetAll();
  12. var list = new List<collectTable>();
  13. foreach (var item in collectList)
  14. {
  15. if (item.Type == 1)
  16. list.Add(item);
  17. }
  18. return list;
  19. }
  20. public static List<collectTable> GetAllEpiCollectList()
  21. {
  22. var collectList = GetAll();
  23. var list = new List<collectTable>();
  24. foreach (var item in collectList)
  25. {
  26. if (item.Type == 2)
  27. list.Add(item);
  28. }
  29. return list;
  30. }
  31. }
  32. }