Ejemplo n.º 1
0
 public int DeleteChatById(string chatId)
 {
     try
     {
         SqlMessageProvider mp = new SqlMessageProvider();
         mp.DeleteChatMessageByChatId(chatId);//ɾ�������¼
         string sql = "delete from LiveChat_Chat where ChatId='" + chatId + "'";
         return DBHelper.ExecuteCommand(sql);
     }
     catch (Exception ex)
     {
         return 0;
     }
 }
Ejemplo n.º 2
0
 public int DeleteChatById(string chatId)
 {
     try
     {
         SqlMessageProvider mp = new SqlMessageProvider();
         mp.DeleteChatMessageByChatId(chatId);//删除聊天记录
         string sql = "delete from LiveChat_Chat where ChatId='" + chatId + "'";
         return(DBHelper.ExecuteCommand(sql));
     }
     catch (Exception ex)
     {
         return(0);
     }
 }