Is there a performance difference between:
ctx
.Students
.Join(
ctx.Countries,
q => q.CountryId,
q => q.CountryId,
(c,s) => new { c,s })
.Where(q => q.c.CountryName= "USA")
.Select(q => q.s.StudentName)
.ToList();
and:
ctx
.Students
.Join(
ctx.Countries.Where(q => q.CountryName == "USA"),
q => q.CountryId,
q => q.CountryId,
(c,s) => s)
.Select(q => q.StudentName)
.ToList();
If so, which query is preferable ?