I have two lists as below:
var processedOrders = this._requestReviewRecordService.GetAll().ToList();
var orders = _orderRepository.Table.Where(o => o.OrderStatusId == (int)OrderStatus.Complete && o.CreatedOnUtc < EntityFunctions.AddMinutes(DateTime.Now, -minutes)).ToList();
The lists are of different types, but both contain a property called OrderId.
Essentially I want to filter the second list "orders" of any records that a matching OrderId.
I've tried Linq's Except method, but this seems to only play nicely with primitive types.
Can anyone point me in the right direction - I didnt think this would be quite so challenging!
Thanks in advance Al