EntityHistoryConfiguration.cs 738 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Abp.EntityHistory
  4. {
  5. internal class EntityHistoryConfiguration : IEntityHistoryConfiguration
  6. {
  7. public bool IsEnabled { get; set; }
  8. public bool IsEnabledForAnonymousUsers { get; set; }
  9. public IEntityHistorySelectorList Selectors { get; }
  10. public List<Type> IgnoredTypes { get; }
  11. public EntityHistoryConfiguration()
  12. {
  13. IsEnabled = true;
  14. Selectors = new EntityHistorySelectorList();
  15. IgnoredTypes = new List<Type>()
  16. {
  17. typeof(EntityChangeSet),
  18. typeof(EntityChange),
  19. typeof(EntityPropertyChange)
  20. };
  21. }
  22. }
  23. }