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 GetPartnerStarListById(int id) { var arr = GetAll(); var list = new List(); foreach (var item in arr) { if (item.PetId == id) { list.Add(item); } } return list; } } }