1

i have 3 tables User, TeamMember and Assessment all three have the user_id column, User is linked to TeamMember by userid and TeamMember and Assessment are linked with user_id(TeamMember) & rater,rated(Assessment)

Im trying to join in with this

          from a in db.Assessments
                         join u in db.Team_Members on a.rated equals u.user_id
                         join u2 in db.Team_Members on a.rater equals u2.user_id

It's throwing this error

The type of one of the expressions in the join clause is incorrect. Type inference failed in the call to 'Join'.

Any idea what going on?

4

1 回答 1

4

您需要确保a.rated/u.user_ida.rater/u2.user_id是同一类型

于 2012-10-31T16:02:24.013 回答