using InABox.Core; namespace Comal.Classes { [UserTracking(typeof(ManufacturingPacket))] [Caption("Components")] public class ManufacturingPacketComponent : Entity, IRemotable, IPersistent, IOneToMany, ILicense { [EntityRelationship(DeleteAction.Cascade)] public ManufacturingPacketLink Packet { get; set; } [EntityRelationship(DeleteAction.SetNull)] public ProductLink Product { get; set; } public int Quantity { get; set; } public double Height { get; set; } public double Width { get; set; } public double Length { get; set; } protected override void Init() { base.Init(); Packet = new ManufacturingPacketLink(); Product = new ProductLink(() => this); } } }