using MadRunFabric.Common; using MongoDB.Bson.Serialization.Attributes; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace MadRunFabric.Model { /// /// 楼 (Sys_Building楼,Sys_Floor楼层) /// public class Sys_Building:IBaseModel { /// /// 自增id /// [Key] [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string id { get; set; } /// /// 项目名称id /// [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] public string projectid { get; set; } /// /// 楼名称 /// public string buildname { get; set; } /// /// 排序 /// public int sortnum { get; set; } /// /// 备注 /// public string remark { get; set; } /// /// 添加人工号 /// public string createtby { get; set; } /// /// 添加时间 /// public DateTime createtime { set { _createtime = value; } get { return _createtime; } } private DateTime _createtime; /// /// 是否删除(0正常 -1删除) /// public int isdelete { get; set; } = 0; /// /// 删除人工号 /// public string deleteby { get; set; } /// /// 删除时间 /// public DateTime deletetime { set { _deletetime = value; } get { return _deletetime; } } private DateTime _deletetime; } }