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