I have the following tables:
**Aula**
Id
Nome
Data
**Avaliacao**
Aula_Id
Aluno_Id
Organizacao
Didatica
To get a join of the tables I use the code:
var result = from a in mdc.SBE_AA_Aulas
join av in mdc.SBE_AA_AvaliacaoAlunos on a.id equals av.SBE_AA_Aula_id
select new
{
a,
av
};
Where Organization and Didatica are the notes.
I would like a consultation through linq, which would bring an average of Organization and Didatica grades for each lesson.
But I can not do that.