' Options: 'Date: 2024-12-22 21:51:08 '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: CreateBooking.* '''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 ''' '''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 Photo 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 Date? Public Overridable Property Notes As String Public Overridable Property CouponId As String End Class Public Enum RoomType [Single] [Double] Queen Twin Suite End Enum End Namespace End Namespace