Beispiel #1
0
 public bool ExitDayLog(DayLog entity)
 {
     return Dal.Exists<DayLog>(DayLog._.ID != entity.ID && DayLog._.UserID == entity.UserID && DayLog._.WordDate == entity.WordDate);
 }
Beispiel #2
0
 /// <summary>
 /// 根据ID获取日志信息表实体
 /// </summary>
 /// <param name="guid">主键ID</param>
 /// <returns>返回日志信息表实体</returns> 
 public DayLog GetItemById(Guid guid)
 {
     DayLog tem = new DayLog();
     tem = Dal.Find<DayLog>(DayLog._.ID == guid);
     return tem;
 }