using System; using AyaNova.Biz; using System.ComponentModel.DataAnnotations; namespace AyaNova.Models { public class FileAttachment { public FileAttachment(){ //all start out as synchronized InSync=true; } public long Id { get; set; } public uint Concurrency { get; set; } //----------------------------------------- [Required] public long AttachToObjectId { get; set; } [Required] public AyaType AttachToObjectType { get; set; }//int [Required] public string StoredFileName { get; set; } [Required] public string DisplayFileName { get; set; } [Required] public string ContentType { get; set; }//mime type [Required] public DateTime LastModified { get; set; } public string Notes { get; set; } public bool InSync {get;set;}//was on disk last sync check } }