using System.ComponentModel.DataAnnotations; using Yw.Entity; namespace HStation.Entity { /// /// 厂商 /// [SysType("manufacturer_mapping")] [SugarTable("manufacturer_mapping")] public class ManufacturerMapping : BaseEntity, System.ICloneable { public ManufacturerMapping() { } public ManufacturerMapping(ManufacturerMapping rhs) : base(rhs) { this.ID = rhs.ID; this.ManufactuerID = rhs.ManufactuerID; this.SeriesID = rhs.SeriesID; this.AssetsType = rhs.AssetsType; this.Description = rhs.Description; } public void Reset(ManufacturerMapping rhs) { this.ID = rhs.ID; this.ManufactuerID = rhs.ManufactuerID; this.SeriesID = rhs.SeriesID; this.AssetsType = rhs.AssetsType; this.Description = rhs.Description; } /// /// 厂商ID /// public long ManufactuerID { get; set; } /// /// 系列ID /// public long SeriesID { get; set; } /// /// 资产类型 /// public int AssetsType { get; set; } /// /// 说明 /// [Display(Name = "说明")] public string Description { get; set; } /// /// /// public Manufacturer Clone() { return (Manufacturer)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }