You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
704 B

using System.Collections.Generic;
using System.Linq;
namespace ET
{
public partial class AllItemConfigCategory
{
/// <summary>
/// 获取AllItem表中指定RelatedTable的所有项目
/// </summary>
/// <param name="id">RelatedTableID</param>
/// <returns></returns>
public List<int> GetAllItemByRelatedTable(int id)
{
var result = new List<int>();
foreach (var config in this.list)
{
if (config.RelatedTable == id)
{
result.Add(config.Id);
continue;
}
}
return result;
}
}
}