using System; using InABox.Core; namespace Comal.Classes { public abstract class EntityKanban : Entity, IRemotable, IPersistent, ILicense where TEntity : Entity where TLink : IEntityLink, new() { [EntityRelationship(DeleteAction.Cascade)] public TLink Entity { get; set; } [EntityRelationship(DeleteAction.Cascade)] public KanbanLink Kanban { get; set; } protected override void Init() { base.Init(); Kanban = new KanbanLink(); Entity = new TLink(); } } public class RequisitionKanban : EntityKanban { } public class SetoutKanban : EntityKanban { } public class DeliveryKanban : EntityKanban { } public class PurchaseOrderKanban : EntityKanban { } public class ManufacturingPacketKanban : EntityKanban { } public class JobRequisitionKanban : EntityKanban { } }