我把什么放在我的订单中?我想按名字订购.我在明确之后移动了orderby因为我读到它需要最后完成.
var result = (from r in db.RecordDocs where r.RecordID == recordID select new { DocTypeID = r.Document.DocType.DocTypeID,Name = r.Document.DocType.Name,Number = r.Document.DocType.Number } ).Distinct().OrderBy( );
解决方法
做就是了
.OrderBy(doc => doc.Name)