You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

2 years ago
2 years ago
  1. using Shentun.Peis.OrganizationUnits;
  2. using Volo.Abp.Identity;
  3. using Volo.Abp.ObjectExtending;
  4. using Volo.Abp.Threading;
  5. namespace Shentun.Peis;
  6. public static class PeisDtoExtensions
  7. {
  8. private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner();
  9. public static void Configure()
  10. {
  11. OneTimeRunner.Run(() =>
  12. {
  13. /* You can add extension properties to DTOs
  14. * defined in the depended modules.
  15. *
  16. * Example:
  17. *
  18. * ObjectExtensionManager.Instance
  19. * .AddOrUpdateProperty<IdentityRoleDto, string>("Title");
  20. *
  21. * See the documentation for more:
  22. * https://docs.abp.io/en/abp/latest/Object-Extensions
  23. */
  24. //ObjectExtensionManager.Instance
  25. //.AddOrUpdateProperty<char>(
  26. // new[]
  27. // {
  28. // typeof(OrganizationUnitsDto),
  29. // typeof(OrganizationUnitsCreateDto),
  30. // typeof(OrganizationUnitsUpdateDto)
  31. // }, "IsPeis"
  32. // );
  33. });
  34. }
  35. }