' Options:
'Date: 2024-12-04 19:05:39
'Version: 8.12
'Tip: To override a DTO option, remove "''" prefix before updating
'BaseUrl: https://vue-vite-api.jamstacks.net
'
'''GlobalNamespace:
'''MakePartial: True
'''MakeVirtual: True
'''MakeDataContractsExtensible: False
'''AddReturnMarker: True
'''AddDescriptionAsComments: True
'''AddDataContractAttributes: False
'''AddIndexesToDataMembers: False
'''AddGeneratedCodeAttributes: False
'''AddResponseStatus: False
'''AddImplicitVersion:
'''InitializeCollections: True
'''ExportValueTypes: False
'IncludeTypes: CreateBooking.*
'''ExcludeTypes:
'''AddNamespaces:
'''AddDefaultXmlNamespace: http://schemas.servicestack.net/types
Imports System
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 Nullable(Of Date)
Public Overridable Property Cost As Decimal
Public Overridable Property Notes As String
Public Overridable Property Cancelled As Nullable(Of Boolean)
Public Overridable Property CreatedDate As Date
Public Overridable Property CreatedBy As String
Public Overridable Property ModifiedDate As Date
Public Overridable Property ModifiedBy As String
Public Overridable Property DeletedDate As Nullable(Of Date)
Public Overridable Property DeletedBy As String
End Class
'''
'''Create a new Booking
'''
Public Partial Class CreateBooking
Implements IReturn(Of IdResponse)
Implements ICreateDb(Of Booking)
'''
'''Name this Booking is for
'''
Public Overridable Property Name As String
Public Overridable Property RoomType As RoomType
Public Overridable Property RoomNumber As Integer
Public Overridable Property Cost As Decimal
Public Overridable Property BookingStartDate As Date
Public Overridable Property BookingEndDate As Nullable(Of Date)
Public Overridable Property Notes As String
End Class
Public Enum RoomType
Single
[Double]
Queen
Twin
Suite
End Enum
End Namespace
End Namespace