Thanks for your help guys,
staffMember.ContactID is an int and currentBooking.EduContactID is a
nullable int, so I tried declaring local variable
int currContactID = (int)currentBooking.EduContactID;
then as you pointed out Jon,
Edu.EventStaff newStaff = new Edu.EventStaff()
{
Staff = (from Edu.Staff staffMember in EduDContext.Staff
where staffMember.ContactID == currContactID
select staffMember).Single(),
};
I still get the same exception. Must be a bug in DbLinq, now I just
have to try to figure out how to fix the bug!!
Thanks,
Sam.
--
You received this message because you are subscribed to the Google Groups
"DbLinq" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/dblinq?hl=en.