Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get last id ef

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