using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace Platform.Infrastructure.SignalRLayer.Service { public interface ISignalRMessage where T :class { /// /// 新增 /// /// /// bool Add(T entity); /// /// 更新 /// /// /// /// bool Update(T entity); ///// ///// 删除 ///// ///// ///// //bool Delete(string id); /// /// 删除 /// /// /// bool Delete(Expression> expression); /// /// 查询记录条数 /// /// int GetTotalCount(Expression> expression); /// /// 查询所有记录 /// /// List GetAll(); List GetAllByCondition(Expression> expression); List GetAllByCondition(string condition); /// /// 查询单条记录 /// /// /// T GetSingal(string id); /// /// 根据条件查询数据 /// /// 条件表达式 /// T GetSingal(Expression> expression); T FirstOrDefault(Expression> expression); /* /// /// 查询单条已读 /// /// /// T GetSingalRead(string id); /// ///查询所有未读记录 /// /// List GetAllNoRead(); /// /// 查询一个人员未读记录 /// /// /// List GetAllNoReadById(string id); int UpdateStatus(string id); */ //List GetList } }