using InABox.Core; using System; using System.Collections.Generic; using System.Text; namespace Comal.Classes { public enum EventSubscriberType { Notification, Email } public class EventSubscriber : Entity, IRemotable, IPersistent, IManyToMany, ILicense { public EventLink Event { get; set; } [EditorSequence(1)] public EmployeeLink Employee { get; set; } [EditorSequence(2)] public EventSubscriberType SubscriberType { get; set; } = EventSubscriberType.Notification; static EventSubscriber() { DefaultColumns.Add(x => x.Event.Code); DefaultColumns.Add(x => x.Employee.Code); DefaultColumns.Add(x => x.Employee.Name); DefaultColumns.Add(x => x.SubscriberType); } } }