This has more to do with my lack of knowledge for how to properly find items in an IList than it does anything else, but I am using an Entity collection so I get to ask it here.
I am using the adapter scenario (which won't really matter, but there you are anyway). I have a StudentEntity and I have retrieved his StudentEntity.Registrations (classes) for today's date. I then have another EntityCollection that contains the all the attendance records for this student and all his classes for this same day. Therefore, the column I am matching to in both lists is the ClsID (class ID) field.
So, my pseudo code looks like:
Retrieve Collection of this.Students.Registrations
Retreive Collection of AttendanceEntities where stu_id = '123' and cal_date = today
For each registration in RegistrationCollection
Find the corresponding AttendanceEntity in AttnCollection where cls_id = registration.cls_id
...what I'm not sure how to do is the part inside my for loop. How do I find the record inside the AttnCollection that matches my record in the RegistrationCollection?