KitProduct.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. #region Kit
  5. [UserTracking(typeof(Quote))]
  6. public class KitProduct : Entity, IPersistent, IRemotable, ISequenceable, IManyToMany<Kit, Product>, ILicense<QuotesManagementLicense>
  7. {
  8. [EntityRelationship(DeleteAction.Cascade)]
  9. public KitLink Kit { get; set; }
  10. [EntityRelationship(DeleteAction.SetNull)]
  11. public ProductLink Product { get; set; }
  12. public KitConditionLink Condition1 { get; set; }
  13. public KitConditionLink Condition2 { get; set; }
  14. public KitConditionLink Condition3 { get; set; }
  15. public KitFormulaLink Formula { get; set; }
  16. public int Multiplier { get; set; }
  17. [NullEditor]
  18. public long Sequence { get; set; }
  19. protected override void Init()
  20. {
  21. base.Init();
  22. Product = new ProductLink(() => this);
  23. Kit = new KitLink();
  24. Condition1 = new KitConditionLink();
  25. Condition2 = new KitConditionLink();
  26. Condition3 = new KitConditionLink();
  27. Formula = new KitFormulaLink();
  28. }
  29. }
  30. #endregion
  31. }