IShell.cs 436 B

1234567891011121314151617181920212223
  1. using System;
  2. using InABox.Core;
  3. namespace InABox.Avalonia
  4. {
  5. public interface IShell
  6. {
  7. Guid ID { get; }
  8. ICoreRepository Parent { get; }
  9. bool IsChanged();
  10. void Save(string auditmessage);
  11. void Cancel();
  12. bool Match(string? text);
  13. }
  14. public interface IShell<out TEntity>
  15. where TEntity : Entity, IRemotable, IPersistent
  16. {
  17. TEntity Entity { get; }
  18. }
  19. }