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 __Room = LightSwitchApplication.Room

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 Room
        Inherits Global.Microsoft.LightSwitch.Framework.Base.EntityObject(Of __Room, __Room.DetailsClass)
    
        #Region "Constructors"
    
        ''' <summary>
        ''' Initializes a new instance of the Room 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 __Room))
            MyBase.New(entitySet)
            
            __Room.DetailsClass.Initialize(Me)
        End Sub
    
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Room_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Room_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 __Room.DetailsClass.GetValue(Me, __Room.DetailsClass.PropertySetProperties.Id)
            End Get
            Set
                __Room.DetailsClass.SetValue(Me, __Room.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 __Room.DetailsClass.GetValue(Me, __Room.DetailsClass.PropertySetProperties.RowVersion)
            End Get
            Set
                __Room.DetailsClass.SetValue(Me, __Room.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 Name As String
            Get
                Return __Room.DetailsClass.GetValue(Me, __Room.DetailsClass.PropertySetProperties.Name)
            End Get
            Set
                __Room.DetailsClass.SetValue(Me, __Room.DetailsClass.PropertySetProperties.Name, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Name_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Name_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Name_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 __Room.DetailsClass.GetValue(Me, __Room.DetailsClass.PropertySetProperties.Notes)
            End Get
            Set
                __Room.DetailsClass.SetValue(Me, __Room.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 ReadOnly Property InventoryItems As Global.Microsoft.LightSwitch.Framework.EntityCollection(Of Global.LightSwitchApplication.InventoryItem)
            Get
                Return __Room.DetailsClass.GetValue(Me, __Room.DetailsClass.PropertySetProperties.InventoryItems)
            End Get
        End Property
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property InventoryItemsQuery As Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.InventoryItem)
            Get
                Return __Room.DetailsClass.GetQuery(Me, __Room.DetailsClass.PropertySetProperties.InventoryItems)
            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 Appointment As Global.LightSwitchApplication.Appointment
            Get
                Return __Room.DetailsClass.GetValue(Me, __Room.DetailsClass.PropertySetProperties.Appointment)
            End Get
            Set
                __Room.DetailsClass.SetValue(Me, __Room.DetailsClass.PropertySetProperties.Appointment, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointment_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointment_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Appointment_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 _
                __Room, _
                __Room.DetailsClass, _
                __Room.DetailsClass.IImplementation, _
                __Room.DetailsClass.PropertySet, _
                Global.Microsoft.LightSwitch.Details.Framework.EntityCommandSet(Of __Room, __Room.DetailsClass), _
                Global.Microsoft.LightSwitch.Details.Framework.EntityMethodSet(Of __Room, __Room.DetailsClass))
    
            Shared Sub New()
                Dim initializeEntry = __Room.DetailsClass.PropertySetProperties.Id
            End Sub
    
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __RoomEntry As Global.Microsoft.LightSwitch.Details.Framework.Base.EntityDetails(Of __Room, __Room.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Base.EntityDetails(Of __Room, __Room.DetailsClass).Entry( _
                    AddressOf __Room.DetailsClass.__Room_CreateNew, _
                    AddressOf __Room.DetailsClass.__Room_Created, _
                    AddressOf __Room.DetailsClass.__Room_AllowSaveWithErrors)
            Private Shared Function __Room_CreateNew(es As Global.Microsoft.LightSwitch.Framework.EntitySet(Of __Room)) As __Room
                Return New __Room(es)
            End Function
            Private Shared Sub __Room_Created(e As __Room)
                e.Room_Created()
            End Sub
            Private Shared Function __Room_AllowSaveWithErrors(e As __Room) As Boolean
                Dim result As Boolean = False
                e.Room_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 __Room, __Room.DetailsClass)
                Get
                    Return MyBase.Commands
                End Get
            End Property
    
            Public ReadOnly Shadows Property Methods As Global.Microsoft.LightSwitch.Details.Framework.EntityMethodSet(Of __Room, __Room.DetailsClass)
                Get
                    Return MyBase.Methods
                End Get
            End Property
    
            Public ReadOnly Shadows Property Properties As __Room.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 __Room, __Room.DetailsClass)
    
                Public Sub New()
                    MyBase.New()
                End Sub
    
                Public ReadOnly Property Id As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, Integer)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Room.DetailsClass.PropertySetProperties.Id),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, Integer))
                    End Get
                End Property
                
                Public ReadOnly Property RowVersion As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, Byte())
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Room.DetailsClass.PropertySetProperties.RowVersion),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, Byte()))
                    End Get
                End Property
                
                Public ReadOnly Property Name As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Room.DetailsClass.PropertySetProperties.Name),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property Notes As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Room.DetailsClass.PropertySetProperties.Notes),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property InventoryItems As Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Room, __Room.DetailsClass, Global.LightSwitchApplication.InventoryItem)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Room.DetailsClass.PropertySetProperties.InventoryItems),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Room, __Room.DetailsClass, Global.LightSwitchApplication.InventoryItem))
                    End Get
                End Property
                
                Public ReadOnly Property Appointment As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Room, __Room.DetailsClass, Global.LightSwitchApplication.Appointment)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Room.DetailsClass.PropertySetProperties.Appointment),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Room, __Room.DetailsClass, Global.LightSwitchApplication.Appointment))
                    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 Name As String
                Shadows Property Notes As String
                Shadows ReadOnly Property InventoryItems As Global.System.Collections.IEnumerable
                Shadows Property Appointment 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 __Room, __Room.DetailsClass, Integer).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, Integer).Entry( _
                        "Id", _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Id_Stub, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Id_ComputeIsReadOnly, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Id_Validate, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Id_GetImplementationValue, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Id_SetImplementationValue, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Id_OnValueChanged)
                Private Shared Sub _Id_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Room.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, Integer).Data), d As __Room.DetailsClass, sf As Object)
                    c(d, d._Id, sf)
                End Sub
                Private Shared Function _Id_ComputeIsReadOnly(e As __Room) As Boolean
                    Dim result As Boolean = False
                    e.Id_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Id_Validate(e As __Room, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Id_Validate(r)
                End Sub
                Private Shared Function _Id_GetImplementationValue(d As __Room.DetailsClass) As Integer
                    Return d.ImplementationEntity.Id
                End Function
                Private Shared Sub _Id_SetImplementationValue(d As __Room.DetailsClass, v As Integer)
                    d.ImplementationEntity.Id = v
                End Sub
                Private Shared Sub _Id_OnValueChanged(e As __Room)
                    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 __Room, __Room.DetailsClass, Byte()).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, Byte()).Entry( _
                        "RowVersion", _
                        AddressOf __Room.DetailsClass.PropertySetProperties._RowVersion_Stub, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._RowVersion_ComputeIsReadOnly, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._RowVersion_Validate, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._RowVersion_GetImplementationValue, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._RowVersion_SetImplementationValue, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._RowVersion_OnValueChanged)
                Private Shared Sub _RowVersion_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Room.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, Byte()).Data), d As __Room.DetailsClass, sf As Object)
                    c(d, d._RowVersion, sf)
                End Sub
                Private Shared Function _RowVersion_ComputeIsReadOnly(e As __Room) As Boolean
                    Dim result As Boolean = False
                    e.RowVersion_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _RowVersion_Validate(e As __Room, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.RowVersion_Validate(r)
                End Sub
                Private Shared Function _RowVersion_GetImplementationValue(d As __Room.DetailsClass) As Byte()
                    Return d.ImplementationEntity.RowVersion
                End Function
                Private Shared Sub _RowVersion_SetImplementationValue(d As __Room.DetailsClass, v As Byte())
                    d.ImplementationEntity.RowVersion = v
                End Sub
                Private Shared Sub _RowVersion_OnValueChanged(e As __Room)
                    e.RowVersion_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Name As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, String).Entry( _
                        "Name", _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Name_Stub, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Name_ComputeIsReadOnly, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Name_Validate, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Name_GetImplementationValue, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Name_SetImplementationValue, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Name_OnValueChanged)
                Private Shared Sub _Name_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Room.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, String).Data), d As __Room.DetailsClass, sf As Object)
                    c(d, d._Name, sf)
                End Sub
                Private Shared Function _Name_ComputeIsReadOnly(e As __Room) As Boolean
                    Dim result As Boolean = False
                    e.Name_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Name_Validate(e As __Room, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Name_Validate(r)
                End Sub
                Private Shared Function _Name_GetImplementationValue(d As __Room.DetailsClass) As String
                    Return d.ImplementationEntity.Name
                End Function
                Private Shared Sub _Name_SetImplementationValue(d As __Room.DetailsClass, v As String)
                    d.ImplementationEntity.Name = v
                End Sub
                Private Shared Sub _Name_OnValueChanged(e As __Room)
                    e.Name_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Notes As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, String).Entry( _
                        "Notes", _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Notes_Stub, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Notes_ComputeIsReadOnly, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Notes_Validate, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Notes_GetImplementationValue, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Notes_SetImplementationValue, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Notes_OnValueChanged)
                Private Shared Sub _Notes_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Room.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, String).Data), d As __Room.DetailsClass, sf As Object)
                    c(d, d._Notes, sf)
                End Sub
                Private Shared Function _Notes_ComputeIsReadOnly(e As __Room) As Boolean
                    Dim result As Boolean = False
                    e.Notes_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Notes_Validate(e As __Room, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Notes_Validate(r)
                End Sub
                Private Shared Function _Notes_GetImplementationValue(d As __Room.DetailsClass) As String
                    Return d.ImplementationEntity.Notes
                End Function
                Private Shared Sub _Notes_SetImplementationValue(d As __Room.DetailsClass, v As String)
                    d.ImplementationEntity.Notes = v
                End Sub
                Private Shared Sub _Notes_OnValueChanged(e As __Room)
                    e.Notes_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly InventoryItems As Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Room, __Room.DetailsClass, Global.LightSwitchApplication.InventoryItem).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Room, __Room.DetailsClass, Global.LightSwitchApplication.InventoryItem).Entry( _
                        "InventoryItems", _
                        AddressOf __Room.DetailsClass.PropertySetProperties._InventoryItems_Stub, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._InventoryItems_GetReferencedEntities, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._InventoryItems_GetEntityCollection)
                Private Shared Sub _InventoryItems_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Room.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Room, __Room.DetailsClass, Global.LightSwitchApplication.InventoryItem).Data), d As __Room.DetailsClass, sf As Object)
                    c(d, d._InventoryItems, sf)
                End Sub
                Private Shared Function _InventoryItems_GetReferencedEntities(d As __Room.DetailsClass) As Global.System.Collections.Generic.IEnumerable(Of Global.LightSwitchApplication.InventoryItem)
                    Return d.GetReferencedEntities(Of Global.LightSwitchApplication.InventoryItem, Global.LightSwitchApplication.InventoryItem.DetailsClass)(__Room.DetailsClass.PropertySetProperties.InventoryItems, d._InventoryItems)
                End Function
                Private Shared Function _InventoryItems_GetEntityCollection(d As __Room.DetailsClass) As Global.System.Collections.IEnumerable
                    Return d.ImplementationEntity.InventoryItems
                End Function
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Appointment As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Room, __Room.DetailsClass, Global.LightSwitchApplication.Appointment).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Room, __Room.DetailsClass, Global.LightSwitchApplication.Appointment).Entry( _
                        "Appointment", _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Appointment_Stub, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Appointment_ComputeIsReadOnly, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Appointment_Validate, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Appointment_GetCoreImplementationValue, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Appointment_GetImplementationValue, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Appointment_SetImplementationValue, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Appointment_Refresh, _
                        AddressOf __Room.DetailsClass.PropertySetProperties._Appointment_OnValueChanged)
                Private Shared Sub _Appointment_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Room.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Room, __Room.DetailsClass, Global.LightSwitchApplication.Appointment).Data), d As __Room.DetailsClass, sf As Object)
                    c(d, d._Appointment, sf)
                End Sub
                Private Shared Function _Appointment_ComputeIsReadOnly(e As __Room) As Boolean
                    Dim result As Boolean = False
                    e.Appointment_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Appointment_Validate(e As __Room, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Appointment_Validate(r)
                End Sub
                Private Shared Function _Appointment_GetCoreImplementationValue(d as __Room.DetailsClass) As Global.Microsoft.LightSwitch.Internal.IEntityImplementation
                    Return d.ImplementationEntity.Appointment
                End Function
                Private Shared Function _Appointment_GetImplementationValue(d as __Room.DetailsClass) As Global.LightSwitchApplication.Appointment
                    Return d.GetImplementationValue(Of Global.LightSwitchApplication.Appointment, Global.LightSwitchApplication.Appointment.DetailsClass)(__Room.DetailsClass.PropertySetProperties.Appointment, d._Appointment)
                End Function
                Private Shared Sub _Appointment_SetImplementationValue(d As __Room.DetailsClass, v As Global.LightSwitchApplication.Appointment)
                    d.SetImplementationValue(__Room.DetailsClass.PropertySetProperties.Appointment, d._Appointment, Sub(i, ev) i.Appointment = ev, v)
                End Sub
                Private Shared Sub _Appointment_Refresh(d As __Room.DetailsClass)
                    d.RefreshNavigationProperty(__Room.DetailsClass.PropertySetProperties.Appointment, d._Appointment)
                End Sub
                Private Shared Sub _Appointment_OnValueChanged(e As __Room)
                    e.Appointment_Changed()
                End Sub
    
            End Class
    
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Id As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, Integer).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _RowVersion As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, Byte()).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Name As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Notes As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Room, __Room.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _InventoryItems As Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Room, __Room.DetailsClass, Global.LightSwitchApplication.InventoryItem).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Appointment As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Room, __Room.DetailsClass, Global.LightSwitchApplication.Appointment).Data
            
        End Class
    
        #End Region
    
    End Class
    
    #End Region
End Namespace