1234567891011121314151617181920212223242526272829303132333435363738 |
- using InABox.Core;
- namespace Comal.Classes
- {
-
- public interface IBaseIntegrationSource
- {
- string? Code { get; set; }
- string? Description { get; set; }
- IEntityLink Entity { get; }
- IntegrationSourceType Source { get; set; }
- }
-
- public abstract class BaseIntegrationSource<TEntity,TLink> : Entity, IRemotable, IPersistent, IOneToMany<TEntity>, IBaseIntegrationSource
- where TEntity : Entity
- where TLink : IEntityLink<TEntity>
- {
- [NullEditor]
- [EntityRelationship(DeleteAction.Cascade)]
- [RequiredColumn]
- public TLink Entity { get; set; }
- IEntityLink IBaseIntegrationSource.Entity => Entity;
-
- [EditorSequence(1)]
- [EnumLookupEditor(typeof(IntegrationSourceType), Visible = Visible.Default, Width = 100)]
- public IntegrationSourceType Source { get; set; }
-
- [EditorSequence(2)]
- [TextBoxEditor]
- public string? Code { get; set; }
-
- [EditorSequence(3)]
- [TextBoxEditor]
- public string? Description{ get; set; }
- }
-
- }
|