CacheKey.cs 689 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SqlSugar
  6. {
  7. public class CacheKey
  8. {
  9. public string AppendKey { get; set; }
  10. public string Database { get; set; }
  11. public List<string> Tables { get; set; }
  12. public List<string> IdentificationList { get; set; }
  13. public new string ToString()
  14. {
  15. var result= "SqlSugarDataCache" + UtilConstants.Dot + string.Join(UtilConstants.Dot, this.Tables) +UtilConstants.Dot+ string.Join(UtilConstants.Dot, this.IdentificationList.Where(it=>it.HasValue()));
  16. result = result + AppendKey;
  17. return result;
  18. }
  19. }
  20. }