MsgReadStatus.cs 734 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace LYFZ.WanYuKeFuData.DAL
  6. {
  7. public class MsgReadStatus : BaseDataOperate<LYFZ.WanYuKeFuData.Model.MsgReadStatus>
  8. {
  9. public MsgReadStatus(LYFZ.WanYuKeFuData.Model.DBConnection dbConn)
  10. {
  11. base.DBConn = dbConn;
  12. }
  13. /// <summary>
  14. /// 检查记录是否存在
  15. /// </summary>
  16. /// <param name="msgid"></param>
  17. /// <param name="userid"></param>
  18. /// <returns></returns>
  19. public bool CheckMsgReadExists(long msgid, string userid)
  20. {
  21. return this.Exists(String.Format(" msgID={0} and UserID='{1}' ",msgid,userid));
  22. }
  23. }
  24. }