我需要将此查询转换为 nhibernate linq
IEnumerable<Account> accounts = from a in dc.Accounts
where (a.FirstName + " " + a.LastName).Contains(SearchText) ||
a.Email.Contains(SearchText) ||
a.Username.Contains(SearchText)
select a;
我试过这个,但我一开始就卡住了,所以我需要帮助。
IEnumerable<Account> accounts = NHSession.Query<Account>().Where(x=>x.FirstName)