三层架构的update语句 是这样写得么?
通过条件Pbdate='"+dateTimePicker1.Value.ToShortDateString()+"',来更新同一张表里week的值。Maticsoft.M...
通过条件Pbdate='" + dateTimePicker1.Value.ToShortDateString() + "',来更新同一张表里week的值。
Maticsoft.Model.T_Paiban ModelPaiban = new Maticsoft.Model.T_Paiban();
ModelPaiban.TheWeek = 3;
Maticsoft.BLL.T_Paiban BllPaiban = new Maticsoft.BLL.T_Paiban();
DataSet ds = BllPaiban.GetList("Pbdate='" + dateTimePicker1.Value.ToShortDateString() + "'");
BllPaiban.Update(ModelPaiban);
是更新同一张表里TheWeek的值。 展开
Maticsoft.Model.T_Paiban ModelPaiban = new Maticsoft.Model.T_Paiban();
ModelPaiban.TheWeek = 3;
Maticsoft.BLL.T_Paiban BllPaiban = new Maticsoft.BLL.T_Paiban();
DataSet ds = BllPaiban.GetList("Pbdate='" + dateTimePicker1.Value.ToShortDateString() + "'");
BllPaiban.Update(ModelPaiban);
是更新同一张表里TheWeek的值。 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询