2014-01-05 48 views

回答

1

一種方式來做到這一點是這樣的:

from a in db.Account 
where !db.Account.Any(a2 => a2.ParentID == a.AccountID) 
select a;