标签: sql linq-to-sql
SELECT Max(VarInvoiceNo) FROM tbl_feesCollection
答案 0 :(得分:2)
使用Max()方法:
Max()
var result = db.tbl_feesCollection.Max(element => element.VarInvoiceNo);