123456789101112131415161718192021222324252627282930 |
- using InABox.Core;
- namespace Comal.Classes
- {
- [UserTracking(typeof(ManufacturingPacket))]
- [Caption("Components")]
- public class ManufacturingPacketComponent : Entity, IRemotable, IPersistent, IOneToMany<ManufacturingPacket>, ILicense<ManufacturingLicense>
- {
- [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);
- }
- }
- }
|