How to merge two BusinessListBase collections?

How to merge two BusinessListBase collections?

Old forum URL: forums.lhotka.net/forums/t/11662.aspx


chatzikk posted on Saturday, October 27, 2012

I am developing a Win form application using CSLA 4.3.13. I have a Customer BusinessBase class and the Customers BusinessListBase.

I want to merge two customers collections(customers1 and customers2) and keep only the distinct customer items (based on the CustomerId property). I am trying to use something like that:

customers1= customers1.Union(customers2)

but I did not manage to make it work

Can someone help?

 

Copyright (c) Marimer LLC