Exemplo n.º 1
0
 /// <summary>
 /// �޸�ͼ������
 /// </summary>
 /// <param name="newBookInfo">�µ�ͼ����Ϣ��ϣ��</param>
 /// <param name="condition">Update��Where�Ӿ�</param>
 public void Update(Hashtable newBookInfo)
 {
     Database db=new Database();
     string condition = "Where BookID = "+this._bookId;
     db.Update("[Book]",newBookInfo,condition);
 }
Exemplo n.º 2
0
 /// <summary>
 /// �޸Ĺ������е�һ��ͼ������
 /// </summary>
 /// <param name="newCartInfo">�µĹ�������Ϣ��ϣ��</param>
 /// <param name="condition">Update��Where�Ӿ�</param>
 public void Update(Hashtable newCartInfo,int cartId)
 {
     Database db=new Database();
     string condition = "Where CartID = "+cartId.ToString();
     db.Update("[Cart]",newCartInfo,condition);
 }