SupplierContact.cs 685 B

123456789101112131415161718192021222324
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. [UserTracking(typeof(Contact))]
  5. public class SupplierContact : Entity, IRemotable, IPersistent, IManyToMany<Supplier, Contact>, ILicense<CoreLicense>
  6. {
  7. [EntityRelationship(DeleteAction.Cascade)]
  8. public SupplierLink Supplier { get; set; }
  9. [EntityRelationship(DeleteAction.Cascade)]
  10. public ContactLink Contact { get; set; }
  11. public ContactTypeLink Type { get; set; }
  12. protected override void Init()
  13. {
  14. base.Init();
  15. Supplier = new SupplierLink();
  16. Contact = new ContactLink();
  17. Type = new ContactTypeLink();
  18. }
  19. }
  20. }