示例#1
0
        public PermissionactionDto GetPermissionaction(Guid id)
        {
            ExHelper.ThrowIf(id == Guid.Empty, "无效的查询参数");
            PermissionactionDto dto = Dbc.Db.GetById <PermissionactionDto>(id);

            return(dto);
        }
示例#2
0
 public bool SetPermissionaction(PermissionactionDto dto)
 {
     CheckPermissionaction(dto);//检查用户输入
     if (dto.Id != Guid.Empty)
     {
         PermissionactionDto dbDto = Dbc.Db.GetById <PermissionactionDto>(dto.Id);
         ExHelper.ThrowIfNull(dbDto, "查找更新记录失败.");
         dbDto.CopyTo(dto, a => a.Id);
     }
     Dbc.Db.Set(dto);
     return(true);
 }
示例#3
0
 /// <summary>
 /// 检查校验Save对象
 /// </summary>
 /// <param name="dto">Dto 对象</param>
 /// <returns></returns>
 private void CheckPermissionaction(PermissionactionDto dto)
 {
 }