using InABox.Core; namespace Comal.Classes { #region Kit [UserTracking(typeof(Quote))] public class KitProduct : Entity, IPersistent, IRemotable, ISequenceable, IManyToMany, ILicense { [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 }