var max= (from s in db.Area
where s.FareaId == areaId
orderby Convert.ToInt32(s.SubName.Substring(1)) descending
select s.SubName).FirstOrDefault();
return max;
------解决方案--------------------
var max= (from s in db.Area where s.FareaId == areaId orderby Convert.ToInt32(Regex.Match(s.SubName,"\\d+").Value) descending select s.SubName).FirstOrDefault(); return max;
------解决方案--------------------