using Microsoft.EntityFrameworkCore; using MongoDB.Bson.Serialization.Attributes; using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using Volo.Abp.Domain.Entities; namespace Business.Domain { public abstract class MoBaseEntity: Entity { /// /// 生成新的Id /// public void GenerateNewId(long id) { Id = id; } ///// ///// id ///// //[Comment("id")] //[BsonRepresentation(MongoDB.Bson.BsonType.Int64)] //public virtual long id { get; set; } /// /// mysql表id /// [Comment("mysql表id")] public virtual long mysql_id { get; set; } /// /// 创建人 /// [Comment("创建人id")] public virtual long? create_by { get; set; } /// /// 创建人名称 /// [StringLength(50)] [Comment("创建人名称")] public virtual string? create_by_name { get; set; } /// /// 创建时间 /// [Comment("创建时间")] public virtual DateTime? create_time { get; set; } /// /// 修改人 /// [Comment("修改人")] public virtual long? update_by { get; set; } /// /// 修改人名称 /// [StringLength(50)] [Comment("修改人名称")] public virtual string? update_by_name { get; set; } /// /// 修改时间 /// [Comment("修改时间")] public virtual DateTime? update_time { get; set; } /// /// 企业ID /// [Required] [Comment("企业ID")] public virtual long tenant_id { get; set; } /// /// 工厂ID /// [Comment("工厂ID")] public virtual long? factory_id { get; set; } /// /// 组织ID /// [Comment("组织ID")] public virtual long? org_id { get; set; } /// /// 删除标识 /// [DefaultValue(false)] [Comment("删除标识")] public bool IsDeleted { get; set; } } }