Ejemplo n.º 1
0
        /// <summary>
        /// 还原文件
        /// </summary>
        /// <param name="keyValue">主键</param>
        public void RestoreFile(string keyValue)
        {
            FileInfoEntity fileInfoEntity = new FileInfoEntity();

            fileInfoEntity.Modify(keyValue);
            fileInfoEntity.F_DeleteMark = 0;
            this.BaseRepository().Update(fileInfoEntity);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 保存文件表单(新增、修改)
 /// </summary>
 /// <param name="keyValue">主键值</param>
 /// <param name="fileInfoEntity">文件信息实体</param>
 /// <returns></returns>
 public void SaveForm(string keyValue, FileInfoEntity fileInfoEntity)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         fileInfoEntity.Modify(keyValue);
         this.BaseRepository().Update(fileInfoEntity);
     }
     else
     {
         fileInfoEntity.Create();
         this.BaseRepository().Insert(fileInfoEntity);
     }
 }