using System; using InABox.Core; namespace Comal.Classes { [Caption("Treatments")] [UserTracking(typeof(ManufacturingPacket))] public class ManufacturingTreatment : Entity, IRemotable, IPersistent, IOneToMany, ILicense { [EntityRelationship(DeleteAction.Cascade)] public ManufacturingPacketLink Packet { get; set; } [EditorSequence(3)] public ProductLink Product { get; set; } [DoubleEditor] public double Parameter { get; set; } [TimestampEditor] public DateTime Applied { get; set; } protected override void Init() { base.Init(); Product = new ProductLink(() => this); Packet = new ManufacturingPacketLink(); } } }