Sql查询
select * from Employees where Salary between 1 and 4000
如何将此语句转换为linq查询。
发布于 2016-10-14 11:24:29
考虑到员工包含所有员工(例如,由实体框架填充),这可以实现如下:
Employees.Where(e => e.Salary >= 1 && e.Salary <= 4000)
https://stackoverflow.com/questions/40041876
相似问题