Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get last id ef

//Grab the highest ID value using the OrderByDescending() method
var max = db.Products.OrderByDescending(p => p.ID).FirstOrDefault().ID;
Source by forums.asp.net #
 
PREVIOUS NEXT
Tagged: #id #ef
ADD COMMENT
Topic
Name
4+4 =