DataEntryTagRole.cs 618 B

123456789101112131415161718192021222324
  1. using InABox.Core;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Comal.Classes
  6. {
  7. public class DataEntryTagRole : Entity, IRemotable, IPersistent, IManyToMany<DataEntryTag, Role>, ILicense<DataEntryLicense>
  8. {
  9. [EntityRelationship(DeleteAction.Cascade)]
  10. public DataEntryTagLink Tag { get; set; }
  11. [EntityRelationship(DeleteAction.Cascade)]
  12. public RoleLink Role { get; set; }
  13. protected override void Init()
  14. {
  15. base.Init();
  16. Tag = new DataEntryTagLink();
  17. Role = new RoleLink();
  18. }
  19. }
  20. }