12345678910111213141516171819202122232425262728 |
- using System.Collections.Generic;
- using XGame.Framework;
- namespace XGame.Database
- {
- public partial class partnerLvUpTableRepo
- {
- public static partnerLvUpTable GetPartnerLvUpTable(int id, int lv)
- {
- int tableId = id * 1000 + lv;
- return Get(tableId);
- }
- public static List<partnerLvUpTable> GetPartnerLvUpListById(int id)
- {
- var arr = GetAll();
- var list = new List<partnerLvUpTable>();
- foreach (var item in arr)
- {
- if (item.PetId == id)
- {
- list.Add(item);
- }
- }
- return list;
- }
- }
- }
|