📌  相关文章
📜  获取最后一个 id ef - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:38.953000             🧑  作者: Mango

代码示例2
//Grab the highest ID value using the OrderByDescending() method
var max = db.Products.OrderByDescending(p => p.ID).FirstOrDefault().ID;