ASP Classic blog framework - BrainOrdure
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

206 rindas
5.6KB

  1. <%
  2. ' Auto-generated POBO for table [Posts]
  3. ' Generated on 5/2/2026 9:48:11 PM
  4. ' Generator: GenerateRepo.vbs v1.0
  5. '
  6. ' Dependencies: core/helpers.asp (QuoteValue function)
  7. Class POBO_Posts
  8. ' Public array of all property names
  9. Public Properties
  10. Private pBody
  11. Private pCategoryID
  12. Private pCreatedDate
  13. Private pIsPublished
  14. Private pPostID
  15. Private pPublishedDate
  16. Private pSlug
  17. Private pSummary
  18. Private pTitle
  19. Private pUpdatedDate
  20. Private Sub Class_Initialize()
  21. pBody = Null
  22. pCategoryID = 0
  23. pCreatedDate = #1/1/1970#
  24. pIsPublished = 0
  25. pPostID = 0
  26. pPublishedDate = #1/1/1970#
  27. pSlug = Null
  28. pSummary = Null
  29. pTitle = Null
  30. pUpdatedDate = #1/1/1970#
  31. Properties = Array("Body","CategoryID","CreatedDate","IsPublished","PostID","PublishedDate","Slug","Summary","Title","UpdatedDate")
  32. End Sub
  33. Public Property Get PrimaryKey()
  34. PrimaryKey = "PostID"
  35. End Property
  36. Public Property Get TableName()
  37. TableName = "Posts"
  38. End Property
  39. Public Property Get Body()
  40. Body = pBody
  41. End Property
  42. Public Property Let Body(val)
  43. On Error Resume Next
  44. If IsNumeric(val) Then
  45. pBody = CDbl(val)
  46. Else
  47. pBody = val
  48. End If
  49. If Err.Number <> 0 Then
  50. Err.Raise Err.Number, "POBO_Posts.Body", "Invalid value for Body: " & Err.Description
  51. End If
  52. On Error GoTo 0
  53. End Property
  54. Public Property Get CategoryID()
  55. CategoryID = pCategoryID
  56. End Property
  57. Public Property Let CategoryID(val)
  58. On Error Resume Next
  59. If IsNumeric(val) Then
  60. pCategoryID = CDbl(val)
  61. Else
  62. pCategoryID = val
  63. End If
  64. If Err.Number <> 0 Then
  65. Err.Raise Err.Number, "POBO_Posts.CategoryID", "Invalid value for CategoryID: " & Err.Description
  66. End If
  67. On Error GoTo 0
  68. End Property
  69. Public Property Get CreatedDate()
  70. CreatedDate = pCreatedDate
  71. End Property
  72. Public Property Let CreatedDate(val)
  73. On Error Resume Next
  74. pCreatedDate = CDate(val)
  75. If Err.Number <> 0 Then
  76. Err.Raise Err.Number, "POBO_Posts.CreatedDate", "Invalid value for CreatedDate: " & Err.Description
  77. End If
  78. On Error GoTo 0
  79. End Property
  80. Public Property Get IsPublished()
  81. IsPublished = pIsPublished
  82. End Property
  83. Public Property Let IsPublished(val)
  84. On Error Resume Next
  85. If IsNumeric(val) Then
  86. pIsPublished = CDbl(val)
  87. Else
  88. pIsPublished = val
  89. End If
  90. If Err.Number <> 0 Then
  91. Err.Raise Err.Number, "POBO_Posts.IsPublished", "Invalid value for IsPublished: " & Err.Description
  92. End If
  93. On Error GoTo 0
  94. End Property
  95. Public Property Get PostID()
  96. PostID = pPostID
  97. End Property
  98. Public Property Let PostID(val)
  99. On Error Resume Next
  100. If IsNumeric(val) Then
  101. pPostID = CDbl(val)
  102. Else
  103. pPostID = val
  104. End If
  105. If Err.Number <> 0 Then
  106. Err.Raise Err.Number, "POBO_Posts.PostID", "Invalid value for PostID: " & Err.Description
  107. End If
  108. On Error GoTo 0
  109. End Property
  110. Public Property Get PublishedDate()
  111. PublishedDate = pPublishedDate
  112. End Property
  113. Public Property Let PublishedDate(val)
  114. On Error Resume Next
  115. pPublishedDate = CDate(val)
  116. If Err.Number <> 0 Then
  117. Err.Raise Err.Number, "POBO_Posts.PublishedDate", "Invalid value for PublishedDate: " & Err.Description
  118. End If
  119. On Error GoTo 0
  120. End Property
  121. Public Property Get Slug()
  122. Slug = pSlug
  123. End Property
  124. Public Property Let Slug(val)
  125. On Error Resume Next
  126. If IsNumeric(val) Then
  127. pSlug = CDbl(val)
  128. Else
  129. pSlug = val
  130. End If
  131. If Err.Number <> 0 Then
  132. Err.Raise Err.Number, "POBO_Posts.Slug", "Invalid value for Slug: " & Err.Description
  133. End If
  134. On Error GoTo 0
  135. End Property
  136. Public Property Get Summary()
  137. Summary = pSummary
  138. End Property
  139. Public Property Let Summary(val)
  140. On Error Resume Next
  141. If IsNumeric(val) Then
  142. pSummary = CDbl(val)
  143. Else
  144. pSummary = val
  145. End If
  146. If Err.Number <> 0 Then
  147. Err.Raise Err.Number, "POBO_Posts.Summary", "Invalid value for Summary: " & Err.Description
  148. End If
  149. On Error GoTo 0
  150. End Property
  151. Public Property Get Title()
  152. Title = pTitle
  153. End Property
  154. Public Property Let Title(val)
  155. On Error Resume Next
  156. If IsNumeric(val) Then
  157. pTitle = CDbl(val)
  158. Else
  159. pTitle = val
  160. End If
  161. If Err.Number <> 0 Then
  162. Err.Raise Err.Number, "POBO_Posts.Title", "Invalid value for Title: " & Err.Description
  163. End If
  164. On Error GoTo 0
  165. End Property
  166. Public Property Get UpdatedDate()
  167. UpdatedDate = pUpdatedDate
  168. End Property
  169. Public Property Let UpdatedDate(val)
  170. On Error Resume Next
  171. pUpdatedDate = CDate(val)
  172. If Err.Number <> 0 Then
  173. Err.Raise Err.Number, "POBO_Posts.UpdatedDate", "Invalid value for UpdatedDate: " & Err.Description
  174. End If
  175. On Error GoTo 0
  176. End Property
  177. End Class
  178. %>

Powered by TurnKey Linux.