var q = from t in Database.DB.T_BUS_Order
where t.T_Order_NO == "201012210001"
select t;
if (q.Count() == 0) return;
T_BUS_Order order = q.First();
Response.Write(order.T_Order_OfferDate.Value.ToString());
无法显示更新后的数据
直接这样也不可以
T_BUS_Order order = Database.DB.T_BUS_Order.First(c => c.T_Order_NO == OrderNO);
我以为数据库有问题,但是直接用sql语句查询可以显示出来啊