1
How do I use the Join method to give a include of a value from another table? In this case I was going to use the Chamadamusicas table and the Musicavotadas table
var chamadaMusicas = db.ChamadaMusicas
.Include(c => c.Chamada)
.Include(c => c.Musica)
.Where(c => c.Chamada.PessoaID.Equals(id)).Where(i => i.Chamada.Ativa.Equals(true))
.Join(db.MusicaVotadas)
.ToList();
What’s the matter?
– Jéf Bueno
This Join doesn’t work. It gives an error when I use this Join. So I must be using it wrong.
– Fabio Souza
Put the bug. A drawing showing the relationship between the classes will help in understanding the problem.
– user26552