long? maxCount = db.Database.SqlQuery<nullabled<long>>("select max(id) from [Student]").FirstOrDefault();
if(maxCount !=null)
maxid = maxCount;
maxid ++;
2024-01-07 09:19:52
long? maxCount = db.Database.SqlQuery<nullabled<long>>("select max(id) from [Student]").FirstOrDefault();
if(maxCount !=null)
maxid = maxCount;
maxid ++;