CostSheetKit.cs 858 B

12345678910111213141516171819202122232425262728293031
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. [UserTracking(typeof(Quote))]
  5. public class CostSheetKit : Entity, IPersistent, IRemotable, ISequenceable, IOneToMany<CostSheetSection>, IOneToMany<CostSheet>,
  6. ILicense<QuotesManagementLicense>
  7. {
  8. [EntityRelationship(DeleteAction.Cascade)]
  9. public CostSheetLink CostSheet { get; set; }
  10. [EntityRelationship(DeleteAction.SetNull)]
  11. public CostSheetSectionLink Section { get; set; }
  12. [EntityRelationship(DeleteAction.SetNull)]
  13. public KitLink Kit { get; set; }
  14. [NullEditor]
  15. public long Sequence { get; set; }
  16. protected override void Init()
  17. {
  18. base.Init();
  19. CostSheet = new CostSheetLink();
  20. Section = new CostSheetSectionLink();
  21. Kit = new KitLink();
  22. }
  23. }
  24. }