ASP Classic blog framework - BrainOrdure
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

157 lines
4.2KB

  1. <%
  2. ' Auto-generated POBO for table [Comments]
  3. ' Generated on 5/2/2026 9:48:12 PM
  4. ' Generator: GenerateRepo.vbs v1.0
  5. '
  6. ' Dependencies: core/helpers.asp (QuoteValue function)
  7. Class POBO_Comments
  8. ' Public array of all property names
  9. Public Properties
  10. Private pAuthorEmail
  11. Private pAuthorName
  12. Private pBody
  13. Private pCommentID
  14. Private pCreatedDate
  15. Private pIsApproved
  16. Private pPostID
  17. Private Sub Class_Initialize()
  18. pAuthorEmail = Null
  19. pAuthorName = Null
  20. pBody = Null
  21. pCommentID = 0
  22. pCreatedDate = #1/1/1970#
  23. pIsApproved = 0
  24. pPostID = 0
  25. Properties = Array("AuthorEmail","AuthorName","Body","CommentID","CreatedDate","IsApproved","PostID")
  26. End Sub
  27. Public Property Get PrimaryKey()
  28. PrimaryKey = "CommentID"
  29. End Property
  30. Public Property Get TableName()
  31. TableName = "Comments"
  32. End Property
  33. Public Property Get AuthorEmail()
  34. AuthorEmail = pAuthorEmail
  35. End Property
  36. Public Property Let AuthorEmail(val)
  37. On Error Resume Next
  38. If IsNumeric(val) Then
  39. pAuthorEmail = CDbl(val)
  40. Else
  41. pAuthorEmail = val
  42. End If
  43. If Err.Number <> 0 Then
  44. Err.Raise Err.Number, "POBO_Comments.AuthorEmail", "Invalid value for AuthorEmail: " & Err.Description
  45. End If
  46. On Error GoTo 0
  47. End Property
  48. Public Property Get AuthorName()
  49. AuthorName = pAuthorName
  50. End Property
  51. Public Property Let AuthorName(val)
  52. On Error Resume Next
  53. If IsNumeric(val) Then
  54. pAuthorName = CDbl(val)
  55. Else
  56. pAuthorName = val
  57. End If
  58. If Err.Number <> 0 Then
  59. Err.Raise Err.Number, "POBO_Comments.AuthorName", "Invalid value for AuthorName: " & Err.Description
  60. End If
  61. On Error GoTo 0
  62. End Property
  63. Public Property Get Body()
  64. Body = pBody
  65. End Property
  66. Public Property Let Body(val)
  67. On Error Resume Next
  68. If IsNumeric(val) Then
  69. pBody = CDbl(val)
  70. Else
  71. pBody = val
  72. End If
  73. If Err.Number <> 0 Then
  74. Err.Raise Err.Number, "POBO_Comments.Body", "Invalid value for Body: " & Err.Description
  75. End If
  76. On Error GoTo 0
  77. End Property
  78. Public Property Get CommentID()
  79. CommentID = pCommentID
  80. End Property
  81. Public Property Let CommentID(val)
  82. On Error Resume Next
  83. If IsNumeric(val) Then
  84. pCommentID = CDbl(val)
  85. Else
  86. pCommentID = val
  87. End If
  88. If Err.Number <> 0 Then
  89. Err.Raise Err.Number, "POBO_Comments.CommentID", "Invalid value for CommentID: " & Err.Description
  90. End If
  91. On Error GoTo 0
  92. End Property
  93. Public Property Get CreatedDate()
  94. CreatedDate = pCreatedDate
  95. End Property
  96. Public Property Let CreatedDate(val)
  97. On Error Resume Next
  98. pCreatedDate = CDate(val)
  99. If Err.Number <> 0 Then
  100. Err.Raise Err.Number, "POBO_Comments.CreatedDate", "Invalid value for CreatedDate: " & Err.Description
  101. End If
  102. On Error GoTo 0
  103. End Property
  104. Public Property Get IsApproved()
  105. IsApproved = pIsApproved
  106. End Property
  107. Public Property Let IsApproved(val)
  108. On Error Resume Next
  109. If IsNumeric(val) Then
  110. pIsApproved = CDbl(val)
  111. Else
  112. pIsApproved = val
  113. End If
  114. If Err.Number <> 0 Then
  115. Err.Raise Err.Number, "POBO_Comments.IsApproved", "Invalid value for IsApproved: " & Err.Description
  116. End If
  117. On Error GoTo 0
  118. End Property
  119. Public Property Get PostID()
  120. PostID = pPostID
  121. End Property
  122. Public Property Let PostID(val)
  123. On Error Resume Next
  124. If IsNumeric(val) Then
  125. pPostID = CDbl(val)
  126. Else
  127. pPostID = val
  128. End If
  129. If Err.Number <> 0 Then
  130. Err.Raise Err.Number, "POBO_Comments.PostID", "Invalid value for PostID: " & Err.Description
  131. End If
  132. On Error GoTo 0
  133. End Property
  134. End Class
  135. %>

Powered by TurnKey Linux.