problem with a join

Posted by Luca Romagnoli on Stack Overflow See other posts from Stack Overflow or by Luca Romagnoli
Published on 2010-03-22T09:30:13Z Indexed on 2010/03/22 9:41 UTC
Read the original article Hit count: 384

Filed under:
|
|

I have this code:

int se = (int) settings.GruppoSegreteria;
    var acc = db.USR_Accounts.Where( p => p.ID_Gruppo == se);
    var segreterie = from s in db.USR_Utenti 
                     join h in acc on s.ID equals h.USR_UtentiReference
                     select s;

And this error:

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

I don't understand it. Can you help me?

thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about LINQ