using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ComponentModel.DataAnnotations; namespace Sleis.Models { public class ReportAttachmentComponent : BaseModel { public virtual int ReportId { get; set; } public virtual string Name { get; set; } public virtual string Description { get; set; } public virtual string MimeType { get; set; } public virtual string Ext { get { return (String.IsNullOrEmpty(Name)) ? String.Empty : System.IO.Path.GetExtension(Name) .Replace(".","") .ToLower(); } } } }