using MadRunFabric.Common; using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace MadRunFabric.Model { /// /// 文件管理 /// 资料管理 - 省三院 /// [BsonIgnoreExtraElements] public class Pro_StudyMaterials_Info : IBaseModel { /// /// id /// [Key] [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string id { get; set; } /// /// 学习资料标题 /// public string title { get; set; } /// /// 项目名称id /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string projectid { get; set; } /// /// 学习资料内容 /// public string content { get; set; } /// /// 附件(包括图片) /// public List studymaterfile { get; set; } = null; /// /// 添加人 /// public string createby { get; set; } /// /// 添加时间 /// public DateTime createtime { get { return _createtime.ToLocalTime(); } set { _createtime = value.ToLocalTime(); } } private DateTime _createtime = DateTime.Now.ToLocalTime(); /// /// 是否删除(0正常-1删除) /// public int isdelete { get; set; } = 0; /// /// 删除人 /// public string deleteby { get; set; } /// /// 删除日期 /// public DateTime deletetime { get { return _deletetime.ToLocalTime(); } set { _deletetime = value.ToLocalTime(); } } private DateTime _deletetime; } }