我有一个<code>列表<;索赔事件>代码>由此类组成:
public class ClaimEvent
{
public ClaimEventType ClaimEventClaimEventType { get; set; }
public DateTime OccurredOn { get; set; }
public DateTime Created { get; set; }
public DateTime Modified { get; set; }
public string CreatedBy { get; set; }
public string ModifiedBy { get; set; }
}
ClaimEventType是这样的。。。
public class ClaimEventType
{
public ClaimEventType()
{
Cancels = new List<ClaimEventType>();
CancelledBy = new List<ClaimEventType>();
}
public int ClaimEventTypeId { get; set; }
public string ClaimEventTypeName { get; set; }
public List<ClaimEventType> Cancels { get; set; }
public List<ClaimEventType> CancelledBy { get; set; }
}
Cancels
列出此事件在按OccuredOn
排序的列表中出现在它们之后时取消的所有事件类型CancelledBy
是相反的,也就是说,如果cancelled By
如何查询这些对象的列表,以便列表中其他项目取消的项目不会出现在结果中?