data.Orderdetails.Where(r => r.orderstatus == id && DateTime.Compare((DateTime)r.OrderTime, ”要比较的时间“) >= && DateTime.Compare((DateTime)r.OrderTime, “要比较的时间”) <= ).ToList();
data.Orderdetails.Where(r => r.orderstatus == id && DateTime.Compare((DateTime)r.OrderTime, ”要比较的时间“) >= && DateTime.Compare((DateTime)r.OrderTime, “要比较的时间”) <= ).ToList();