' Options:
'Date: 2024-12-22 21:28:23
'Version: 8.51
'Tip: To override a DTO option, remove "''" prefix before updating
'BaseUrl: https://blazor-gallery.servicestack.net
'
'''GlobalNamespace:
'''MakePartial: True
'''MakeVirtual: True
'''MakeDataContractsExtensible: False
'''AddReturnMarker: True
'''AddDescriptionAsComments: True
'''AddDataContractAttributes: False
'''AddIndexesToDataMembers: False
'''AddGeneratedCodeAttributes: False
'''AddResponseStatus: False
'''AddImplicitVersion:
'''InitializeCollections: False
'''ExportValueTypes: False
'IncludeTypes: QueryBookings.*
'''ExcludeTypes:
'''AddNamespaces:
'''AddDefaultXmlNamespace: http://schemas.servicestack.net/types
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports MyApp.ServiceModel
Namespace Global
Namespace MyApp.ServiceModel
'''
'''Booking Details
'''
Public Partial Class Booking
Inherits AuditBase
Public Overridable Property Id As Integer
Public Overridable Property Name As String
Public Overridable Property RoomType As RoomType
Public Overridable Property RoomNumber As Integer
Public Overridable Property BookingStartDate As Date
Public Overridable Property BookingEndDate As Date?
Public Overridable Property Cost As Decimal
Public Overridable Property CouponId As String
Public Overridable Property Discount As Coupon
Public Overridable Property Notes As String
Public Overridable Property Cancelled As Boolean?
End Class
'''
'''Discount Coupons
'''
Public Partial Class Coupon
Public Overridable Property Id As String
Public Overridable Property Description As String
Public Overridable Property Discount As Integer
Public Overridable Property ExpiryDate As Date
End Class
'''
'''Find Bookings
'''
Public Partial Class QueryBookings
Inherits QueryDb(Of Booking)
Implements IReturn(Of QueryResponse(Of Booking))
Public Overridable Property Id As Integer?
End Class
Public Enum RoomType
[Single]
[Double]
Queen
Twin
Suite
End Enum
End Namespace
End Namespace