I have a table that represent userInfo. My requirement is get last value of table as userID. Table structure is
-------------------------------------
userID | username | password
-------------------------------------
I use MYsql as database and userID is auto-increment.
I try this code but it not working in my controller
var userID = db.users.Max().userID;