Is there a not in sub-query for Linq to Enties as in this T-SQL
问题 Assume the classic self-referencing Employee table where each employee may have at most one ReportsTo, as created with this T-SQL snippet and sample data: create table Employees ( Id int identity primary key, Name nvarchar(30), Region nvarchar(10), ReportsTo int null foreign key(ReportsTo) references Employees(Id) ) insert into Employees values('Boss','HO',null) insert into Employees values('Underling', 'HO', (select Id from Employees where Name='Boss')) insert into Employees values('Self