Consolidated ASP Classic MVC framework from best components
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

104 lignes
2.5KB

  1. <%
  2. ' Auto-generated POBO for table [Territories]
  3. ' Generated on 1/17/2026 2:53:15 PM
  4. ' Generator: GenerateRepo.vbs v1.0
  5. '
  6. ' Dependencies: core/helpers.asp (QuoteValue function)
  7. Class POBO_Territories
  8. ' Public array of all property names
  9. Public Properties
  10. Private pCoordinates
  11. Private pDescription
  12. Private pId
  13. Private pName
  14. Private Sub Class_Initialize()
  15. pCoordinates = Null
  16. pDescription = Null
  17. pId = 0
  18. pName = Null
  19. Properties = Array("Coordinates","Description","Id","Name")
  20. End Sub
  21. Public Property Get PrimaryKey()
  22. PrimaryKey = "Id"
  23. End Property
  24. Public Property Get TableName()
  25. TableName = "Territories"
  26. End Property
  27. Public Property Get Coordinates()
  28. Coordinates = pCoordinates
  29. End Property
  30. Public Property Let Coordinates(val)
  31. On Error Resume Next
  32. If IsNumeric(val) Then
  33. pCoordinates = CDbl(val)
  34. Else
  35. pCoordinates = val
  36. End If
  37. If Err.Number <> 0 Then
  38. Err.Raise Err.Number, "POBO_Territories.Coordinates", "Invalid value for Coordinates: " & Err.Description
  39. End If
  40. On Error GoTo 0
  41. End Property
  42. Public Property Get Description()
  43. Description = pDescription
  44. End Property
  45. Public Property Let Description(val)
  46. On Error Resume Next
  47. If IsNumeric(val) Then
  48. pDescription = CDbl(val)
  49. Else
  50. pDescription = val
  51. End If
  52. If Err.Number <> 0 Then
  53. Err.Raise Err.Number, "POBO_Territories.Description", "Invalid value for Description: " & Err.Description
  54. End If
  55. On Error GoTo 0
  56. End Property
  57. Public Property Get Id()
  58. Id = pId
  59. End Property
  60. Public Property Let Id(val)
  61. On Error Resume Next
  62. If IsNumeric(val) Then
  63. pId = CDbl(val)
  64. Else
  65. pId = val
  66. End If
  67. If Err.Number <> 0 Then
  68. Err.Raise Err.Number, "POBO_Territories.Id", "Invalid value for Id: " & Err.Description
  69. End If
  70. On Error GoTo 0
  71. End Property
  72. Public Property Get Name()
  73. Name = pName
  74. End Property
  75. Public Property Let Name(val)
  76. On Error Resume Next
  77. If IsNumeric(val) Then
  78. pName = CDbl(val)
  79. Else
  80. pName = val
  81. End If
  82. If Err.Number <> 0 Then
  83. Err.Raise Err.Number, "POBO_Territories.Name", "Invalid value for Name: " & Err.Description
  84. End If
  85. On Error GoTo 0
  86. End Property
  87. End Class
  88. %>

Powered by TurnKey Linux.