ManufacturingPacketComponent.cs 857 B

123456789101112131415161718192021222324252627282930
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. [UserTracking(typeof(ManufacturingPacket))]
  5. [Caption("Components")]
  6. public class ManufacturingPacketComponent : Entity, IRemotable, IPersistent, IOneToMany<ManufacturingPacket>, ILicense<ManufacturingLicense>
  7. {
  8. [EntityRelationship(DeleteAction.Cascade)]
  9. public ManufacturingPacketLink Packet { get; set; }
  10. [EntityRelationship(DeleteAction.SetNull)]
  11. public ProductLink Product { get; set; }
  12. public int Quantity { get; set; }
  13. public double Height { get; set; }
  14. public double Width { get; set; }
  15. public double Length { get; set; }
  16. protected override void Init()
  17. {
  18. base.Init();
  19. Packet = new ManufacturingPacketLink();
  20. Product = new ProductLink(() => this);
  21. }
  22. }
  23. }