using System; using System.ComponentModel.DataAnnotations; using xCommons.Constants; using xModels.Base; namespace xFileService.Models.Entities { /// /// Specified File in Server ... /// public class XFile : XBaseGuidIDEntity { /// /// Specified File Type ... /// /// public XFileType Type { get; set; } /// /// User Identifier ... /// /// [Required] [StringLength(255)] public string OwnerId { get; set; } /// /// File Name on Server ... /// /// [Required] [StringLength(255)] public string Name { get; set; } /// /// File Path On Server ... /// /// [Required] public string Path { get; set; } /// /// Thumbnail FIle Name ... /// if File Type Supported Thumbnail ... /// /// public string Thumb { get; set; } /// /// Thumbnail File Path ... /// if File Type Supported Thumbnail ... /// /// public string ThumbPath { get; set; } /// /// File Uploading Time ... /// /// public DateTime UploadedOn { get; set; } /// /// Request For Upload File Name on Client ... /// /// public string FileName { get; set; } } }