123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using InABox.Core;
- namespace Comal.Classes
- {
- #region Kit
- [UserTracking(typeof(Quote))]
- public class KitProduct : Entity, IPersistent, IRemotable, ISequenceable, IManyToMany<Kit, Product>, ILicense<QuotesManagementLicense>
- {
- [EntityRelationship(DeleteAction.Cascade)]
- public KitLink Kit { get; set; }
- [EntityRelationship(DeleteAction.SetNull)]
- public ProductLink Product { get; set; }
- public KitConditionLink Condition1 { get; set; }
- public KitConditionLink Condition2 { get; set; }
- public KitConditionLink Condition3 { get; set; }
- public KitFormulaLink Formula { get; set; }
- public int Multiplier { get; set; }
- [NullEditor]
- public long Sequence { get; set; }
- protected override void Init()
- {
- base.Init();
- Product = new ProductLink(() => this);
- Kit = new KitLink();
- Condition1 = new KitConditionLink();
- Condition2 = new KitConditionLink();
- Condition3 = new KitConditionLink();
- Formula = new KitFormulaLink();
- }
- }
- #endregion
- }
|