0

I have a Linq to Entities query such as this:

public IQueryable<Teachers> GetTeachersByKey()
{
    return from t in this.Context.Teachers
           join t2 in this.Context.Table2 on t.Teacher_K equals t2.Teacher_K
           select t;
}

The problem is that it also returns Teachers_K values that don't even exist in Teachers table.

How can I update the query to exclude those results? I tried joining it Teachers into its self but that didn't do anything.

0 Answers0