Skip to main content

LightSwitch HTML Client Tutorial - Contoso Moving

This tutorial walks through building out the mobile client used by Contoso Movers’ planning specialists. This sample was created for Visual Studio 2012, but it will also upgrade and run in Visual Studio 2013.

VB.NET (6.3 MB)
 
 
 
 
 
4.5 Star
(13)
16,367 times
Add to favorites
12/6/2013
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

VB.NET

'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict On
Option Explicit On

Imports __Appointment = LightSwitchApplication.Appointment

Namespace LightSwitchApplication

    #Region "Entities"
    
    ''' <summary>
    ''' No Modeled Description Available
    ''' </summary>
    <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
    Public NotInheritable Partial Class Appointment
        Inherits Global.Microsoft.LightSwitch.Framework.Base.EntityObject(Of __Appointment, __Appointment.DetailsClass)
    
        #Region "Constructors"
    
        ''' <summary>
        ''' Initializes a new instance of the Appointment entity.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Sub New()
            Me.New(Nothing)
        End Sub
    
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Sub New(entitySet As Global.Microsoft.LightSwitch.Framework.EntitySet(Of __Appointment))
            MyBase.New(entitySet)
            
            __Appointment.DetailsClass.Initialize(Me)
        End Sub
    
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointment_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointment_AllowSaveWithErrors(ByRef result As Boolean)
        End Sub
    
        #End Region
    
        #Region "Private Properties"
        
        ''' <summary>
        ''' Gets the Application object for this application.  The Application object provides access to active screens, methods to open screens and access to the current user.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property Application As Global.Microsoft.LightSwitch.IApplication(Of Global.LightSwitchApplication.DataWorkspace)
            Get
                Return Global.LightSwitchApplication.Application.Current
            End Get
        End Property
        
        ''' <summary>
        ''' Gets the containing data workspace.  The data workspace provides access to all data sources in the application.
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Private ReadOnly Property DataWorkspace As Global.LightSwitchApplication.DataWorkspace
            Get
                Return DirectCast(Me.Details.EntitySet.Details.DataService.Details.DataWorkspace, Global.LightSwitchApplication.DataWorkspace)
            End Get
        End Property
        
        #End Region
    
        #Region "Public Properties"
    
        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property Id As Integer
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Id)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Id, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Id_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Id_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Id_Changed()
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property RowVersion As Byte()
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.RowVersion)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.RowVersion, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub RowVersion_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub RowVersion_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub RowVersion_Changed()
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property StartDate As Date
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.StartDate)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.StartDate, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub StartDate_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub StartDate_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub StartDate_Changed()
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property EndDate As Date
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.EndDate)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.EndDate, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EndDate_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EndDate_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub EndDate_Changed()
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property Street As String
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Street)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Street, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Street_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Street_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Street_Changed()
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property StreetLine2 As String
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.StreetLine2)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.StreetLine2, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub StreetLine2_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub StreetLine2_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub StreetLine2_Changed()
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property City As String
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.City)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.City, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub City_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub City_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub City_Changed()
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property PostalCode As String
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.PostalCode)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.PostalCode, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub PostalCode_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub PostalCode_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub PostalCode_Changed()
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property Notes As String
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Notes)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Notes, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Notes_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Notes_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Notes_Changed()
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property MoveType As String
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.MoveType)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.MoveType, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub MoveType_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub MoveType_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub MoveType_Changed()
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Summary As String
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Summary)
            End Get
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Summary_Compute(ByRef result As String)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Summary_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property State As Global.LightSwitchApplication.State
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.State)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.State, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub State_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub State_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub State_Changed()
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Photos As Global.Microsoft.LightSwitch.Framework.EntityCollection(Of Global.LightSwitchApplication.Photo)
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Photos)
            End Get
        End Property
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property PhotosQuery As Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.Photo)
            Get
                Return __Appointment.DetailsClass.GetQuery(Me, __Appointment.DetailsClass.PropertySetProperties.Photos)
            End Get
        End Property

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property Employee As Global.LightSwitchApplication.Employee
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Employee)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Employee, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Employee_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Employee_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Employee_Changed()
        End Sub

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property Rooms As Global.Microsoft.LightSwitch.Framework.EntityCollection(Of Global.LightSwitchApplication.Room)
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Rooms)
            End Get
        End Property
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property RoomsQuery As Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.Room)
            Get
                Return __Appointment.DetailsClass.GetQuery(Me, __Appointment.DetailsClass.PropertySetProperties.Rooms)
            End Get
        End Property

        ''' <summary>
        ''' No Modeled Description Available
        ''' </summary>
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public Property Customer As Global.LightSwitchApplication.Customer
            Get
                Return __Appointment.DetailsClass.GetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Customer)
            End Get
            Set
                __Appointment.DetailsClass.SetValue(Me, __Appointment.DetailsClass.PropertySetProperties.Customer, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Customer_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Customer_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Customer_Changed()
        End Sub

        #End Region
    
        #Region "Details Class"
    
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
        <Global.System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")> _
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public NotInheritable Class DetailsClass
            Inherits Global.Microsoft.LightSwitch.Details.Framework.Base.EntityDetails(Of _
                __Appointment, _
                __Appointment.DetailsClass, _
                __Appointment.DetailsClass.IImplementation, _
                __Appointment.DetailsClass.PropertySet, _
                Global.Microsoft.LightSwitch.Details.Framework.EntityCommandSet(Of __Appointment, __Appointment.DetailsClass), _
                Global.Microsoft.LightSwitch.Details.Framework.EntityMethodSet(Of __Appointment, __Appointment.DetailsClass))
    
            Shared Sub New()
                Dim initializeEntry = __Appointment.DetailsClass.PropertySetProperties.Id
            End Sub
    
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __AppointmentEntry As Global.Microsoft.LightSwitch.Details.Framework.Base.EntityDetails(Of __Appointment, __Appointment.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Base.EntityDetails(Of __Appointment, __Appointment.DetailsClass).Entry( _
                    AddressOf __Appointment.DetailsClass.__Appointment_CreateNew, _
                    AddressOf __Appointment.DetailsClass.__Appointment_Created, _
                    AddressOf __Appointment.DetailsClass.__Appointment_AllowSaveWithErrors)
            Private Shared Function __Appointment_CreateNew(es As Global.Microsoft.LightSwitch.Framework.EntitySet(Of __Appointment)) As __Appointment
                Return New __Appointment(es)
            End Function
            Private Shared Sub __Appointment_Created(e As __Appointment)
                e.Appointment_Created()
            End Sub
            Private Shared Function __Appointment_AllowSaveWithErrors(e As __Appointment) As Boolean
                Dim result As Boolean = False
                e.Appointment_AllowSaveWithErrors(result)
                Return result
            End Function
    
            Public Sub New()
                MyBase.New()
            End Sub
    
            Public ReadOnly Shadows Property Commands As Global.Microsoft.LightSwitch.Details.Framework.EntityCommandSet(Of __Appointment, __Appointment.DetailsClass)
                Get
                    Return MyBase.Commands
                End Get
            End Property
    
            Public ReadOnly Shadows Property Methods As Global.Microsoft.LightSwitch.Details.Framework.EntityMethodSet(Of __Appointment, __Appointment.DetailsClass)
                Get
                    Return MyBase.Methods
                End Get
            End Property
    
            Public ReadOnly Shadows Property Properties As __Appointment.DetailsClass.PropertySet
                Get
                    Return MyBase.Properties
                End Get
            End Property
    
            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Public NotInheritable Class PropertySet
                Inherits Global.Microsoft.LightSwitch.Details.Framework.Base.EntityPropertySet(Of __Appointment, __Appointment.DetailsClass)
    
                Public Sub New()
                    MyBase.New()
                End Sub
    
                Public ReadOnly Property Id As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Integer)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.Id),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Integer))
                    End Get
                End Property
                
                Public ReadOnly Property RowVersion As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Byte())
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.RowVersion),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Byte()))
                    End Get
                End Property
                
                Public ReadOnly Property StartDate As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Date)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.StartDate),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Date))
                    End Get
                End Property
                
                Public ReadOnly Property EndDate As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Date)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.EndDate),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Date))
                    End Get
                End Property
                
                Public ReadOnly Property Street As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.Street),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property StreetLine2 As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.StreetLine2),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property City As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.City),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property PostalCode As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.PostalCode),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property Notes As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.Notes),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property MoveType As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.MoveType),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property Summary As Global.Microsoft.LightSwitch.Details.Framework.EntityComputedProperty(Of __Appointment, __Appointment.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.Summary),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityComputedProperty(Of __Appointment, __Appointment.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property State As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.State)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.State),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.State))
                    End Get
                End Property
                
                Public ReadOnly Property Photos As Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Photo)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.Photos),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Photo))
                    End Get
                End Property
                
                Public ReadOnly Property Employee As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Employee)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.Employee),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Employee))
                    End Get
                End Property
                
                Public ReadOnly Property Rooms As Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Room)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.Rooms),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Room))
                    End Get
                End Property
                
                Public ReadOnly Property Customer As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Customer)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Appointment.DetailsClass.PropertySetProperties.Customer),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Customer))
                    End Get
                End Property
                
            End Class
    
            <Global.System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")> _
            Public Interface IImplementation
                Inherits Global.Microsoft.LightSwitch.Internal.IEntityImplementation
    
                Shadows Property Id As Integer
                Shadows Property RowVersion As Byte()
                Shadows Property StartDate As Date
                Shadows Property EndDate As Date
                Shadows Property Street As String
                Shadows Property StreetLine2 As String
                Shadows Property City As String
                Shadows Property PostalCode As String
                Shadows Property Notes As String
                Shadows Property MoveType As String
                Shadows Property State As Global.Microsoft.LightSwitch.Internal.IEntityImplementation
                Shadows ReadOnly Property Photos As Global.System.Collections.IEnumerable
                Shadows Property Employee As Global.Microsoft.LightSwitch.Internal.IEntityImplementation
                Shadows ReadOnly Property Rooms As Global.System.Collections.IEnumerable
                Shadows Property Customer As Global.Microsoft.LightSwitch.Internal.IEntityImplementation
    
            End Interface
    
            <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Never)> _
            <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
            <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
            Friend Class PropertySetProperties
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Id As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Integer).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Integer).Entry( _
                        "Id", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Id_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Id_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Id_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Id_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Id_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Id_OnValueChanged)
                Private Shared Sub _Id_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Integer).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._Id, sf)
                End Sub
                Private Shared Function _Id_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.Id_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Id_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Id_Validate(r)
                End Sub
                Private Shared Function _Id_GetImplementationValue(d As __Appointment.DetailsClass) As Integer
                    Return d.ImplementationEntity.Id
                End Function
                Private Shared Sub _Id_SetImplementationValue(d As __Appointment.DetailsClass, v As Integer)
                    d.ImplementationEntity.Id = v
                End Sub
                Private Shared Sub _Id_OnValueChanged(e As __Appointment)
                    e.Id_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly RowVersion As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Byte()).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Byte()).Entry( _
                        "RowVersion", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._RowVersion_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._RowVersion_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._RowVersion_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._RowVersion_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._RowVersion_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._RowVersion_OnValueChanged)
                Private Shared Sub _RowVersion_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Byte()).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._RowVersion, sf)
                End Sub
                Private Shared Function _RowVersion_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.RowVersion_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _RowVersion_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.RowVersion_Validate(r)
                End Sub
                Private Shared Function _RowVersion_GetImplementationValue(d As __Appointment.DetailsClass) As Byte()
                    Return d.ImplementationEntity.RowVersion
                End Function
                Private Shared Sub _RowVersion_SetImplementationValue(d As __Appointment.DetailsClass, v As Byte())
                    d.ImplementationEntity.RowVersion = v
                End Sub
                Private Shared Sub _RowVersion_OnValueChanged(e As __Appointment)
                    e.RowVersion_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly StartDate As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Date).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Date).Entry( _
                        "StartDate", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._StartDate_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._StartDate_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._StartDate_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._StartDate_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._StartDate_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._StartDate_OnValueChanged)
                Private Shared Sub _StartDate_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Date).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._StartDate, sf)
                End Sub
                Private Shared Function _StartDate_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.StartDate_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _StartDate_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.StartDate_Validate(r)
                End Sub
                Private Shared Function _StartDate_GetImplementationValue(d As __Appointment.DetailsClass) As Date
                    Return d.ImplementationEntity.StartDate
                End Function
                Private Shared Sub _StartDate_SetImplementationValue(d As __Appointment.DetailsClass, v As Date)
                    d.ImplementationEntity.StartDate = __Appointment.DetailsClass.ClearDateTimeKind(v)
                End Sub
                Private Shared Sub _StartDate_OnValueChanged(e As __Appointment)
                    e.StartDate_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly EndDate As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Date).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Date).Entry( _
                        "EndDate", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._EndDate_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._EndDate_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._EndDate_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._EndDate_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._EndDate_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._EndDate_OnValueChanged)
                Private Shared Sub _EndDate_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Date).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._EndDate, sf)
                End Sub
                Private Shared Function _EndDate_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.EndDate_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _EndDate_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.EndDate_Validate(r)
                End Sub
                Private Shared Function _EndDate_GetImplementationValue(d As __Appointment.DetailsClass) As Date
                    Return d.ImplementationEntity.EndDate
                End Function
                Private Shared Sub _EndDate_SetImplementationValue(d As __Appointment.DetailsClass, v As Date)
                    d.ImplementationEntity.EndDate = __Appointment.DetailsClass.ClearDateTimeKind(v)
                End Sub
                Private Shared Sub _EndDate_OnValueChanged(e As __Appointment)
                    e.EndDate_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Street As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry( _
                        "Street", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Street_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Street_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Street_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Street_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Street_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Street_OnValueChanged)
                Private Shared Sub _Street_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._Street, sf)
                End Sub
                Private Shared Function _Street_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.Street_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Street_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Street_Validate(r)
                End Sub
                Private Shared Function _Street_GetImplementationValue(d As __Appointment.DetailsClass) As String
                    Return d.ImplementationEntity.Street
                End Function
                Private Shared Sub _Street_SetImplementationValue(d As __Appointment.DetailsClass, v As String)
                    d.ImplementationEntity.Street = v
                End Sub
                Private Shared Sub _Street_OnValueChanged(e As __Appointment)
                    e.Street_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly StreetLine2 As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry( _
                        "StreetLine2", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._StreetLine2_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._StreetLine2_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._StreetLine2_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._StreetLine2_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._StreetLine2_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._StreetLine2_OnValueChanged)
                Private Shared Sub _StreetLine2_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._StreetLine2, sf)
                End Sub
                Private Shared Function _StreetLine2_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.StreetLine2_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _StreetLine2_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.StreetLine2_Validate(r)
                End Sub
                Private Shared Function _StreetLine2_GetImplementationValue(d As __Appointment.DetailsClass) As String
                    Return d.ImplementationEntity.StreetLine2
                End Function
                Private Shared Sub _StreetLine2_SetImplementationValue(d As __Appointment.DetailsClass, v As String)
                    d.ImplementationEntity.StreetLine2 = v
                End Sub
                Private Shared Sub _StreetLine2_OnValueChanged(e As __Appointment)
                    e.StreetLine2_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly City As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry( _
                        "City", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._City_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._City_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._City_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._City_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._City_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._City_OnValueChanged)
                Private Shared Sub _City_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._City, sf)
                End Sub
                Private Shared Function _City_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.City_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _City_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.City_Validate(r)
                End Sub
                Private Shared Function _City_GetImplementationValue(d As __Appointment.DetailsClass) As String
                    Return d.ImplementationEntity.City
                End Function
                Private Shared Sub _City_SetImplementationValue(d As __Appointment.DetailsClass, v As String)
                    d.ImplementationEntity.City = v
                End Sub
                Private Shared Sub _City_OnValueChanged(e As __Appointment)
                    e.City_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly PostalCode As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry( _
                        "PostalCode", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._PostalCode_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._PostalCode_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._PostalCode_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._PostalCode_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._PostalCode_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._PostalCode_OnValueChanged)
                Private Shared Sub _PostalCode_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._PostalCode, sf)
                End Sub
                Private Shared Function _PostalCode_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.PostalCode_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _PostalCode_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.PostalCode_Validate(r)
                End Sub
                Private Shared Function _PostalCode_GetImplementationValue(d As __Appointment.DetailsClass) As String
                    Return d.ImplementationEntity.PostalCode
                End Function
                Private Shared Sub _PostalCode_SetImplementationValue(d As __Appointment.DetailsClass, v As String)
                    d.ImplementationEntity.PostalCode = v
                End Sub
                Private Shared Sub _PostalCode_OnValueChanged(e As __Appointment)
                    e.PostalCode_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Notes As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry( _
                        "Notes", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Notes_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Notes_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Notes_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Notes_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Notes_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Notes_OnValueChanged)
                Private Shared Sub _Notes_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._Notes, sf)
                End Sub
                Private Shared Function _Notes_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.Notes_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Notes_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Notes_Validate(r)
                End Sub
                Private Shared Function _Notes_GetImplementationValue(d As __Appointment.DetailsClass) As String
                    Return d.ImplementationEntity.Notes
                End Function
                Private Shared Sub _Notes_SetImplementationValue(d As __Appointment.DetailsClass, v As String)
                    d.ImplementationEntity.Notes = v
                End Sub
                Private Shared Sub _Notes_OnValueChanged(e As __Appointment)
                    e.Notes_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly MoveType As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry( _
                        "MoveType", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._MoveType_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._MoveType_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._MoveType_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._MoveType_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._MoveType_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._MoveType_OnValueChanged)
                Private Shared Sub _MoveType_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._MoveType, sf)
                End Sub
                Private Shared Function _MoveType_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.MoveType_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _MoveType_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.MoveType_Validate(r)
                End Sub
                Private Shared Function _MoveType_GetImplementationValue(d As __Appointment.DetailsClass) As String
                    Return d.ImplementationEntity.MoveType
                End Function
                Private Shared Sub _MoveType_SetImplementationValue(d As __Appointment.DetailsClass, v As String)
                    d.ImplementationEntity.MoveType = v
                End Sub
                Private Shared Sub _MoveType_OnValueChanged(e As __Appointment)
                    e.MoveType_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Summary As Global.Microsoft.LightSwitch.Details.Framework.EntityComputedProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityComputedProperty(Of __Appointment, __Appointment.DetailsClass, String).Entry( _
                        "Summary", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Summary_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Summary_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Summary_ComputeValue)
                Private Shared Sub _Summary_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityComputedProperty(Of __Appointment, __Appointment.DetailsClass, String).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._Summary, sf)
                End Sub
                Private Shared Sub _Summary_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Summary_Validate(r)
                End Sub
                Private Shared Function _Summary_ComputeValue(e As __Appointment) As String
                    Dim value As String = Nothing
                    e.Summary_Compute(value)
                    Return value
                End Function
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly State As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.State).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.State).Entry( _
                        "State", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._State_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._State_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._State_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._State_GetCoreImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._State_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._State_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._State_Refresh, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._State_OnValueChanged)
                Private Shared Sub _State_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.State).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._State, sf)
                End Sub
                Private Shared Function _State_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.State_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _State_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.State_Validate(r)
                End Sub
                Private Shared Function _State_GetCoreImplementationValue(d as __Appointment.DetailsClass) As Global.Microsoft.LightSwitch.Internal.IEntityImplementation
                    Return d.ImplementationEntity.State
                End Function
                Private Shared Function _State_GetImplementationValue(d as __Appointment.DetailsClass) As Global.LightSwitchApplication.State
                    Return d.GetImplementationValue(Of Global.LightSwitchApplication.State, Global.LightSwitchApplication.State.DetailsClass)(__Appointment.DetailsClass.PropertySetProperties.State, d._State)
                End Function
                Private Shared Sub _State_SetImplementationValue(d As __Appointment.DetailsClass, v As Global.LightSwitchApplication.State)
                    d.SetImplementationValue(__Appointment.DetailsClass.PropertySetProperties.State, d._State, Sub(i, ev) i.State = ev, v)
                End Sub
                Private Shared Sub _State_Refresh(d As __Appointment.DetailsClass)
                    d.RefreshNavigationProperty(__Appointment.DetailsClass.PropertySetProperties.State, d._State)
                End Sub
                Private Shared Sub _State_OnValueChanged(e As __Appointment)
                    e.State_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Photos As Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Photo).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Photo).Entry( _
                        "Photos", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Photos_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Photos_GetReferencedEntities, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Photos_GetEntityCollection)
                Private Shared Sub _Photos_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Photo).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._Photos, sf)
                End Sub
                Private Shared Function _Photos_GetReferencedEntities(d As __Appointment.DetailsClass) As Global.System.Collections.Generic.IEnumerable(Of Global.LightSwitchApplication.Photo)
                    Return d.GetReferencedEntities(Of Global.LightSwitchApplication.Photo, Global.LightSwitchApplication.Photo.DetailsClass)(__Appointment.DetailsClass.PropertySetProperties.Photos, d._Photos)
                End Function
                Private Shared Function _Photos_GetEntityCollection(d As __Appointment.DetailsClass) As Global.System.Collections.IEnumerable
                    Return d.ImplementationEntity.Photos
                End Function
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Employee As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Employee).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Employee).Entry( _
                        "Employee", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Employee_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Employee_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Employee_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Employee_GetCoreImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Employee_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Employee_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Employee_Refresh, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Employee_OnValueChanged)
                Private Shared Sub _Employee_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Employee).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._Employee, sf)
                End Sub
                Private Shared Function _Employee_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.Employee_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Employee_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Employee_Validate(r)
                End Sub
                Private Shared Function _Employee_GetCoreImplementationValue(d as __Appointment.DetailsClass) As Global.Microsoft.LightSwitch.Internal.IEntityImplementation
                    Return d.ImplementationEntity.Employee
                End Function
                Private Shared Function _Employee_GetImplementationValue(d as __Appointment.DetailsClass) As Global.LightSwitchApplication.Employee
                    Return d.GetImplementationValue(Of Global.LightSwitchApplication.Employee, Global.LightSwitchApplication.Employee.DetailsClass)(__Appointment.DetailsClass.PropertySetProperties.Employee, d._Employee)
                End Function
                Private Shared Sub _Employee_SetImplementationValue(d As __Appointment.DetailsClass, v As Global.LightSwitchApplication.Employee)
                    d.SetImplementationValue(__Appointment.DetailsClass.PropertySetProperties.Employee, d._Employee, Sub(i, ev) i.Employee = ev, v)
                End Sub
                Private Shared Sub _Employee_Refresh(d As __Appointment.DetailsClass)
                    d.RefreshNavigationProperty(__Appointment.DetailsClass.PropertySetProperties.Employee, d._Employee)
                End Sub
                Private Shared Sub _Employee_OnValueChanged(e As __Appointment)
                    e.Employee_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Rooms As Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Room).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Room).Entry( _
                        "Rooms", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Rooms_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Rooms_GetReferencedEntities, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Rooms_GetEntityCollection)
                Private Shared Sub _Rooms_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Room).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._Rooms, sf)
                End Sub
                Private Shared Function _Rooms_GetReferencedEntities(d As __Appointment.DetailsClass) As Global.System.Collections.Generic.IEnumerable(Of Global.LightSwitchApplication.Room)
                    Return d.GetReferencedEntities(Of Global.LightSwitchApplication.Room, Global.LightSwitchApplication.Room.DetailsClass)(__Appointment.DetailsClass.PropertySetProperties.Rooms, d._Rooms)
                End Function
                Private Shared Function _Rooms_GetEntityCollection(d As __Appointment.DetailsClass) As Global.System.Collections.IEnumerable
                    Return d.ImplementationEntity.Rooms
                End Function
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Customer As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Customer).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Customer).Entry( _
                        "Customer", _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Customer_Stub, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Customer_ComputeIsReadOnly, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Customer_Validate, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Customer_GetCoreImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Customer_GetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Customer_SetImplementationValue, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Customer_Refresh, _
                        AddressOf __Appointment.DetailsClass.PropertySetProperties._Customer_OnValueChanged)
                Private Shared Sub _Customer_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Appointment.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Customer).Data), d As __Appointment.DetailsClass, sf As Object)
                    c(d, d._Customer, sf)
                End Sub
                Private Shared Function _Customer_ComputeIsReadOnly(e As __Appointment) As Boolean
                    Dim result As Boolean = False
                    e.Customer_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Customer_Validate(e As __Appointment, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Customer_Validate(r)
                End Sub
                Private Shared Function _Customer_GetCoreImplementationValue(d as __Appointment.DetailsClass) As Global.Microsoft.LightSwitch.Internal.IEntityImplementation
                    Return d.ImplementationEntity.Customer
                End Function
                Private Shared Function _Customer_GetImplementationValue(d as __Appointment.DetailsClass) As Global.LightSwitchApplication.Customer
                    Return d.GetImplementationValue(Of Global.LightSwitchApplication.Customer, Global.LightSwitchApplication.Customer.DetailsClass)(__Appointment.DetailsClass.PropertySetProperties.Customer, d._Customer)
                End Function
                Private Shared Sub _Customer_SetImplementationValue(d As __Appointment.DetailsClass, v As Global.LightSwitchApplication.Customer)
                    d.SetImplementationValue(__Appointment.DetailsClass.PropertySetProperties.Customer, d._Customer, Sub(i, ev) i.Customer = ev, v)
                End Sub
                Private Shared Sub _Customer_Refresh(d As __Appointment.DetailsClass)
                    d.RefreshNavigationProperty(__Appointment.DetailsClass.PropertySetProperties.Customer, d._Customer)
                End Sub
                Private Shared Sub _Customer_OnValueChanged(e As __Appointment)
                    e.Customer_Changed()
                End Sub
    
            End Class
    
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Id As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Integer).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _RowVersion As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Byte()).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _StartDate As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Date).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _EndDate As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, Date).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Street As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _StreetLine2 As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _City As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _PostalCode As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Notes As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _MoveType As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Appointment, __Appointment.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Summary As Global.Microsoft.LightSwitch.Details.Framework.EntityComputedProperty(Of __Appointment, __Appointment.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _State As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.State).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Photos As Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Photo).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Employee As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Employee).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Rooms As Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Room).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Customer As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Appointment, __Appointment.DetailsClass, Global.LightSwitchApplication.Customer).Data
            
        End Class
    
        #End Region
    
    End Class
    
    #End Region
End Namespace