IShell.cs 399 B

123456789101112131415161718192021
  1. using System;
  2. using InABox.Core;
  3. namespace InABox.Mobile
  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. }
  13. public interface IShell<out TEntity>
  14. where TEntity : Entity, IRemotable, IPersistent
  15. {
  16. TEntity Entity { get; }
  17. }
  18. }