Quick question: I'm comparing the IDs of entities in an EF4 EntityCollection against a simple int[] in a loop. I'd like to do something like:
for (int i = 0; i < Collection.Count; ++i)
{
Array.Any(a => a.value == Collection[i].ID) ? /* display yes */ : /* display no */;
}
I'm just not sure how to compare the value within the array with the value from the EntityCollection, or, in other words, what to use for real instead of the value property I made up above.