34 lines
980 B
C#
34 lines
980 B
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BaseOUDAL
|
|
{
|
|
public class Attachment
|
|
{
|
|
public const string HeTongFileType = "hetong";
|
|
public static string LogClass = "附件";
|
|
[DisplayName("绝对地址")]
|
|
public string AbsoluteLink { get; set; }
|
|
[Key]
|
|
public int Id { get; set; }
|
|
[Required]
|
|
[MaxLength(150)]
|
|
public string MasterType { get; set; }
|
|
public int MasterId { get; set; }
|
|
[Required]
|
|
[MaxLength(200)]
|
|
[DisplayName("文档名")]
|
|
public string FileName { get; set; }
|
|
[DisplayName("文档类型")]
|
|
public string ContentType { get; set; }
|
|
[DisplayName("文档大小")]
|
|
public int Length { get; set; }
|
|
[DisplayName("创建时间")]
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
public byte[] Contents { get; set; }
|
|
|
|
public string Link { get; set; }
|
|
}
|
|
}
|