I have a table with a list of names. This table has an ID column that is an autoincremented number. I would like to display on my website something like,
"6,523,213 names created so far."
So, I need to get the highest currently index/ID number from my names table.
I can think of a few ways to do it, I could OrderBy ID by desc and select the first one. But this might not be the fastest way to do this. I could also stick a field some place and increment it every time I insert a new name into the database.
Is there any easier/fast LINQ express to do this?