id like to compare a certain property from a set of objects with an array, something like this:
List<Entity.Error> errorList = new List<Entity.Error>();
Guid[] guids = GetArrayOfGuids();
errorList.AddRange(Entity.ErrorCollection.errorCollection.Where(x => x.id == guids));
I hope this is possible without using:
foreach(Guid g in guids)
errorList.AddRange(Entity.ErrorCollection.errorCollection.Where(x => x.id == g));
so if you have an idea, please let me know.
Edit:
This works:
var query = from error in Entity.ErrorCollection.errorCollection
join guid in GetArrayOfGuids()
on error.product.id equals guid1
select error;
errorList.AddRange(query);
But error.products.version is a List of Entity.Version which I also want to query by another Guid[]. is this possible in one join, oder do i need to do a second join on "var query"?