Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都可以将以下 SQL 查询转换为 lambda 表达式吗?
select MAX(orderid) from tblCustomers where parentid = 1002
谢谢
在 C# 中
var maxOrderId = db.tblCustomers .Where(c => c.parentid == 1002) .Max(c => c.orderid);