Migrating data from Access 97 to Postgres database
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.
 
 
 

92 regels
3.5 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Reflection;
  6. namespace migrate_data
  7. {
  8. public class SQLCreator
  9. {
  10. public List<string> GetProperties<T>(T obj)
  11. {
  12. List<string> list = new List<string>();
  13. foreach (PropertyInfo pi in obj.GetType().GetProperties())
  14. {
  15. list.Add(string.Format("\"{0}\"", pi.Name));
  16. }
  17. return list;
  18. }
  19. }
  20. public class pgdspec
  21. {
  22. public int id { get; set; }
  23. public string reasonForChange { get; set; }
  24. public string workInstruction { get; set; }
  25. public bool? customerNotification { get; set; }
  26. public bool? facRequired { get; set; }
  27. public string validation { get; set; }
  28. public string approvedUserId { get; set; }
  29. public DateTime? approvedDate { get; set; }
  30. public string oereman { get; set; }
  31. public string basicClass { get; set; }
  32. public string built { get; set; }
  33. public int? sameAsId { get; set; }
  34. public string except { get; set; }
  35. public int? makeFrom { get; set; }
  36. public string floatStock { get; set; }
  37. public string voltage { get; set; }
  38. public string rotation { get; set; }
  39. public string terminalPosition { get; set; }
  40. public string drive { get; set; }
  41. public string pinion { get; set; }
  42. public string switchPosition { get; set; }
  43. public string ho { get; set; }
  44. public string sae { get; set; }
  45. public string ftf { get; set; }
  46. public string opening { get; set; }
  47. public string treatment { get; set; }
  48. public string curve { get; set; }
  49. public string remarks { get; set; }
  50. public bool? jsp { get; set; }
  51. public string suctionPort { get; set; }
  52. public string pressurePort { get; set; }
  53. public string suctionFitting { get; set; }
  54. public string pressureFitting { get; set; }
  55. public string serviceReplacementRef { get; set; }
  56. public string tagNumber { get; set; }
  57. public bool? plrv { get; set; }
  58. public bool? rtv { get; set; }
  59. public string frequency { get; set; }
  60. public string note { get; set; }
  61. public string additionalParts { get; set; }
  62. public string gasket { get; set; }
  63. public string metalTag { get; set; }
  64. public string paperTag { get; set; }
  65. public string otherTag { get; set; }
  66. public string bracket { get; set; }
  67. public string box { get; set; }
  68. public DateTime? createDate { get; set; }
  69. public int? createUserId { get; set; }
  70. public DateTime? updateDate { get; set; }
  71. public int? updateUserId { get; set; }
  72. public int partNumberId { get; set; }
  73. public int statusId { get; set; }
  74. public string application { get; set; }
  75. public string swtch { get; set; }
  76. public string mtgh { get; set; }
  77. public string pitch { get; set; }
  78. public bool? facCompleted { get; set; }
  79. public string revisionLevel { get; set; }
  80. public DateTime? effectiveDate { get; set; }
  81. public string signed { get; set; }
  82. public string chked { get; set; }
  83. public string weight { get; set; }
  84. public DateTime? signedDate { get; set; }
  85. public DateTime? checkedDate { get; set; }
  86. }
  87. }