How can I do a Join
with another Entity
?
I have this one,
IEnumerable<EntityNetimoveis.San_Imovel> im = db.San_Imovel.Where(a => a.Credenciada_Id.Equals(10));
I want a JOIN
with San_Imovel_Caracteristica
. Primary Key and Foreign Key called Imovel_Id
I try this one
IEnumerable<EntityNetimoveis.San_Imovel> im = db.San_Imovel.Join.(IEnumerable<EntityNetimoveis.San_Imovel_Caracteristica>, i => imovel_id, a => imovel_Id).Where(a => a.Credenciada_Id.Equals(10));
but this is a wrong code. Has syntax error.