public dynamic ogretimUyesiGetir2(int enstituKodu, int anabilimDaliKodu)
{
var liste = (from p in en.OgretimUyeleri
join j in en.AnaBilimDallari on
new { p.EnstituKodu, p.AnaBilimDaliKodu }
equals new { EnstituKodu = j.EnstituKodu, AnaBilimDaliKodu = anabilimDaliKodu }
select new
{
p.EnstituKodu,
p.AnaBilimDaliKodu,
Adı = p.Adi,
SoyAdı = p.Soyadi,
AnaBilimDaliAdi = j.AnaBilimDaliAdi
}).Where(p => p.EnstituKodu == enstituKodu &&
p.AnaBilimDaliKodu == anabilimDaliKodu).ToList();
return liste;
}
The type of one of the expressions in the join clause is incorrect. Type inference failed in the call to 'Join'.
幫助我嗎?
使用英語設計變量和方法名稱。你的代碼應該做什麼?請添加相關類定義 –