//正确 var weldtable = (from tt in database.NDEWeldingCheckData where tt.IsDelete == false && tt.FK_TasComID == jobnoid select tt ) .OrderBy(p => p.SpaType) .ThenBy(p => p.WeldingCheckTypeGoup) .ThenBy(p => p.OrderNumber); //错误 var weldtable = (from tt in database.NDEWeldingCheckData where tt.IsDelete == false && tt.FK_TasComID == jobnoid orderby tt.SpaType, tt.WeldingCheckTypeGoup, tt.OrderNumber select tt ); //错误 var weldtable = (from tt in database.NDEWeldingCheckData where tt.IsDelete == false && tt.FK_TasComID == jobnoid orderby tt.SpaType orderby tt.WeldingCheckTypeGoup orderby tt.OrderNumber select tt );
时间: 2024-11-09 06:29:04