| 1234567891011121314151617181920212223242526272829303132333435 | using InABox.Core;namespace Comal.Classes{    [UserTracking(typeof(ManufacturingPacket))]    [Caption("Components")]    public class ManufacturingPacketComponent : DimensionedEntity<ProductDimensions>, IRemotable, IPersistent, IOneToMany<ManufacturingPacket>, ILicense<ManufacturingLicense>    {        [EntityRelationship(DeleteAction.Cascade)]        public ManufacturingPacketLink Packet { get; set; }        [EntityRelationship(DeleteAction.SetNull)]        public ProductLink Product { get; set; }        [TextBoxEditor]        [EditorSequence(1)]        public string Description { get; set; }        public int Quantity { get; set; }        public override ProductDimensions Dimensions { get; set; }        /// <summary>        /// When a picking list is creating for a <see cref="ManufacturingPacketComponent"/>, we save a link to the requisition,        /// so that we don't require the same component twice.        /// </summary>        [NullEditor]        public RequisitionLink Requisition { get; set; }        static ManufacturingPacketComponent()        {            LinkedProperties.Register<ManufacturingPacketComponent, ProductLink, string>(x => x.Product, x => x.Name, x => x.Description);        }    }}
 |