QueryExpression DeliveryInquiryQE = new QueryExpression(); DeliveryInquiryQE.EntityName = "new_sap_delivery_inquiry"; DeliveryInquiryQE.ColumnSet = new ColumnSet(true); DeliveryInquiryQE.Criteria.AddCondition("new_vin", ConditionOperator.Equal, vin); //排序 DeliveryInquiryQE.Orders.Add(new OrderExpression("createdon", OrderType.Descending));