【发布时间】:2009-09-18 17:23:32
【问题描述】:
我有一个费用类型的列表,我需要从中排除 ID 存在于另一个 int 类型列表中的列表。
List<int> ExcludedFeeIDs = new List<int>{1,2,3,4};
List<Fee> MyFees = (from c in ctx.Fees
select c).ToList();
示例: List GoodFees = (from f in ctx.Fees where f.FeeID!=ExcludedFeeIDs 中的ID之一);
请帮忙?
【问题讨论】: