BaseIntegrationSource.cs 671 B

1234567891011121314151617181920212223
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. public abstract class BaseIntegrationSource<TEntity,TLink> : Entity, IRemotable, IPersistent, IOneToMany<TEntity>
  5. where TEntity : Entity
  6. where TLink : IEntityLink<TEntity>
  7. {
  8. [NullEditor]
  9. [EntityRelationship(DeleteAction.Cascade)]
  10. public TLink Entity { get; set; }
  11. [EditorSequence(1)]
  12. [EnumLookupEditor(typeof(IntegrationSourceType), Visible = Visible.Default, Width = 100)]
  13. public IntegrationSourceType Source { get; set; }
  14. [EditorSequence(2)]
  15. [TextBoxEditor]
  16. public string? Code { get; set; }
  17. }
  18. }