DeleteNavOptions.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Linq.Expressions;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace SqlSugar
  8. {
  9. public class DeleteNavOptions
  10. {
  11. public bool ManyToManyIsDeleteA { get; set; }
  12. public bool ManyToManyIsDeleteB { get; set; }
  13. }
  14. public class DeleteNavRootOptions
  15. {
  16. public bool IsDiffLogEvent { get; set; }
  17. public object DiffLogBizData { get; set; }
  18. }
  19. public class InsertNavRootOptions
  20. {
  21. public string[] IgnoreColumns { get; set; }
  22. public string[] InsertColumns { get; set; }
  23. public bool IsDiffLogEvent { get; set; }
  24. public object DiffLogBizData { get; set; }
  25. }
  26. //public class InertNavRootOptions
  27. //{
  28. // public string[] IgnoreColumns { get; set; }
  29. // public string[] InsertColumns { get; set; }
  30. //}
  31. public class UpdateNavRootOptions
  32. {
  33. public string[] IgnoreColumns { get; set; }
  34. public string[] UpdateColumns { get; set; }
  35. public bool IsIgnoreAllNullColumns { get; set; }
  36. public bool IsInsertRoot { get; set; }
  37. public bool IsDisableUpdateRoot { get; set; }
  38. public bool IsDiffLogEvent { get; set; }
  39. public object DiffLogBizData { get; set; }
  40. public string[] IgnoreInsertColumns { get; set; }
  41. public bool IsOptLock { get; set; }
  42. }
  43. public class UpdateNavOptions
  44. {
  45. public bool ManyToManyIsUpdateA { get; set; }
  46. public bool ManyToManyIsUpdateB { get; set; }
  47. public object ManyToManySaveMappingTemplate { get; set; }
  48. public bool ManyToManyEnableLogicDelete { get; set; }
  49. public bool OneToManyDeleteAll { get; set; }
  50. public bool OneToManyEnableLogicDelete { get; set; }
  51. public bool OneToManyNoDeleteNull { get; set; }
  52. public bool OneToManyInsertOrUpdate { get; set; }
  53. public Expression RootFunc { get; set; }
  54. public Expression CurrentFunc { get; set; }
  55. public string[] IgnoreColumns { get; set; }
  56. }
  57. public class InsertNavOptions
  58. {
  59. public bool OneToManyIfExistsNoInsert { get; set; }
  60. public bool ManyToManyNoDeleteMap { get; set; }
  61. public object ManyToManySaveMappingTemplate { get; set; }
  62. }
  63. }