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 __Customer = LightSwitchApplication.Customer

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 Customer
        Inherits Global.Microsoft.LightSwitch.Framework.Base.EntityObject(Of __Customer, __Customer.DetailsClass)
    
        #Region "Constructors"
    
        ''' <summary>
        ''' Initializes a new instance of the Customer 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 __Customer))
            MyBase.New(entitySet)
            
            __Customer.DetailsClass.Initialize(Me)
        End Sub
    
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Customer_Created()
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Customer_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 __Customer.DetailsClass.GetValue(Me, __Customer.DetailsClass.PropertySetProperties.Id)
            End Get
            Set
                __Customer.DetailsClass.SetValue(Me, __Customer.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 __Customer.DetailsClass.GetValue(Me, __Customer.DetailsClass.PropertySetProperties.RowVersion)
            End Get
            Set
                __Customer.DetailsClass.SetValue(Me, __Customer.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 LastName As String
            Get
                Return __Customer.DetailsClass.GetValue(Me, __Customer.DetailsClass.PropertySetProperties.LastName)
            End Get
            Set
                __Customer.DetailsClass.SetValue(Me, __Customer.DetailsClass.PropertySetProperties.LastName, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub LastName_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub LastName_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub LastName_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 FirstName As String
            Get
                Return __Customer.DetailsClass.GetValue(Me, __Customer.DetailsClass.PropertySetProperties.FirstName)
            End Get
            Set
                __Customer.DetailsClass.SetValue(Me, __Customer.DetailsClass.PropertySetProperties.FirstName, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub FirstName_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub FirstName_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub FirstName_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 Phone As String
            Get
                Return __Customer.DetailsClass.GetValue(Me, __Customer.DetailsClass.PropertySetProperties.Phone)
            End Get
            Set
                __Customer.DetailsClass.SetValue(Me, __Customer.DetailsClass.PropertySetProperties.Phone, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Phone_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Phone_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Phone_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 Email As String
            Get
                Return __Customer.DetailsClass.GetValue(Me, __Customer.DetailsClass.PropertySetProperties.Email)
            End Get
            Set
                __Customer.DetailsClass.SetValue(Me, __Customer.DetailsClass.PropertySetProperties.Email, Value)
            End Set
        End Property
        
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Email_IsReadOnly(ByRef result As Boolean)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Email_Validate(ByVal results As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
        End Sub
        <Global.System.ComponentModel.EditorBrowsable(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
        Private Partial Sub Email_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 __Customer.DetailsClass.GetValue(Me, __Customer.DetailsClass.PropertySetProperties.Street)
            End Get
            Set
                __Customer.DetailsClass.SetValue(Me, __Customer.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 __Customer.DetailsClass.GetValue(Me, __Customer.DetailsClass.PropertySetProperties.StreetLine2)
            End Get
            Set
                __Customer.DetailsClass.SetValue(Me, __Customer.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 __Customer.DetailsClass.GetValue(Me, __Customer.DetailsClass.PropertySetProperties.City)
            End Get
            Set
                __Customer.DetailsClass.SetValue(Me, __Customer.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 __Customer.DetailsClass.GetValue(Me, __Customer.DetailsClass.PropertySetProperties.PostalCode)
            End Get
            Set
                __Customer.DetailsClass.SetValue(Me, __Customer.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 ReadOnly Property Summary As String
            Get
                Return __Customer.DetailsClass.GetValue(Me, __Customer.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 __Customer.DetailsClass.GetValue(Me, __Customer.DetailsClass.PropertySetProperties.State)
            End Get
            Set
                __Customer.DetailsClass.SetValue(Me, __Customer.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 Appointments As Global.Microsoft.LightSwitch.Framework.EntityCollection(Of Global.LightSwitchApplication.Appointment)
            Get
                Return __Customer.DetailsClass.GetValue(Me, __Customer.DetailsClass.PropertySetProperties.Appointments)
            End Get
        End Property
        
        <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.LightSwitch.BuildTasks.CodeGen", "11.0.0.0")> _
        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute()> _
        Public ReadOnly Property AppointmentsQuery As Microsoft.LightSwitch.IDataServiceQueryable(Of Global.LightSwitchApplication.Appointment)
            Get
                Return __Customer.DetailsClass.GetQuery(Me, __Customer.DetailsClass.PropertySetProperties.Appointments)
            End Get
        End Property

        #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 _
                __Customer, _
                __Customer.DetailsClass, _
                __Customer.DetailsClass.IImplementation, _
                __Customer.DetailsClass.PropertySet, _
                Global.Microsoft.LightSwitch.Details.Framework.EntityCommandSet(Of __Customer, __Customer.DetailsClass), _
                Global.Microsoft.LightSwitch.Details.Framework.EntityMethodSet(Of __Customer, __Customer.DetailsClass))
    
            Shared Sub New()
                Dim initializeEntry = __Customer.DetailsClass.PropertySetProperties.Id
            End Sub
    
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private Shared ReadOnly __CustomerEntry As Global.Microsoft.LightSwitch.Details.Framework.Base.EntityDetails(Of __Customer, __Customer.DetailsClass).Entry = _
                New Global.Microsoft.LightSwitch.Details.Framework.Base.EntityDetails(Of __Customer, __Customer.DetailsClass).Entry( _
                    AddressOf __Customer.DetailsClass.__Customer_CreateNew, _
                    AddressOf __Customer.DetailsClass.__Customer_Created, _
                    AddressOf __Customer.DetailsClass.__Customer_AllowSaveWithErrors)
            Private Shared Function __Customer_CreateNew(es As Global.Microsoft.LightSwitch.Framework.EntitySet(Of __Customer)) As __Customer
                Return New __Customer(es)
            End Function
            Private Shared Sub __Customer_Created(e As __Customer)
                e.Customer_Created()
            End Sub
            Private Shared Function __Customer_AllowSaveWithErrors(e As __Customer) As Boolean
                Dim result As Boolean = False
                e.Customer_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 __Customer, __Customer.DetailsClass)
                Get
                    Return MyBase.Commands
                End Get
            End Property
    
            Public ReadOnly Shadows Property Methods As Global.Microsoft.LightSwitch.Details.Framework.EntityMethodSet(Of __Customer, __Customer.DetailsClass)
                Get
                    Return MyBase.Methods
                End Get
            End Property
    
            Public ReadOnly Shadows Property Properties As __Customer.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 __Customer, __Customer.DetailsClass)
    
                Public Sub New()
                    MyBase.New()
                End Sub
    
                Public ReadOnly Property Id As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, Integer)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.Id),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, Integer))
                    End Get
                End Property
                
                Public ReadOnly Property RowVersion As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, Byte())
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.RowVersion),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, Byte()))
                    End Get
                End Property
                
                Public ReadOnly Property LastName As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.LastName),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property FirstName As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.FirstName),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property Phone As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.Phone),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property Email As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.Email),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property Street As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.Street),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property StreetLine2 As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.StreetLine2),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property City As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.City),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property PostalCode As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.PostalCode),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property Summary As Global.Microsoft.LightSwitch.Details.Framework.EntityComputedProperty(Of __Customer, __Customer.DetailsClass, String)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.Summary),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityComputedProperty(Of __Customer, __Customer.DetailsClass, String))
                    End Get
                End Property
                
                Public ReadOnly Property State As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Customer, __Customer.DetailsClass, Global.LightSwitchApplication.State)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.State),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Customer, __Customer.DetailsClass, Global.LightSwitchApplication.State))
                    End Get
                End Property
                
                Public ReadOnly Property Appointments As Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Customer, __Customer.DetailsClass, Global.LightSwitchApplication.Appointment)
                    Get
                        Return TryCast(
                            MyBase.GetItem(__Customer.DetailsClass.PropertySetProperties.Appointments),
                            Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Customer, __Customer.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 LastName As String
                Shadows Property FirstName As String
                Shadows Property Phone As String
                Shadows Property Email As String
                Shadows Property Street As String
                Shadows Property StreetLine2 As String
                Shadows Property City As String
                Shadows Property PostalCode As String
                Shadows Property State As Global.Microsoft.LightSwitch.Internal.IEntityImplementation
                Shadows ReadOnly Property Appointments As Global.System.Collections.IEnumerable
    
            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 __Customer, __Customer.DetailsClass, Integer).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, Integer).Entry( _
                        "Id", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Id_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Id_ComputeIsReadOnly, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Id_Validate, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Id_GetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Id_SetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Id_OnValueChanged)
                Private Shared Sub _Id_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, Integer).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._Id, sf)
                End Sub
                Private Shared Function _Id_ComputeIsReadOnly(e As __Customer) As Boolean
                    Dim result As Boolean = False
                    e.Id_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Id_Validate(e As __Customer, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Id_Validate(r)
                End Sub
                Private Shared Function _Id_GetImplementationValue(d As __Customer.DetailsClass) As Integer
                    Return d.ImplementationEntity.Id
                End Function
                Private Shared Sub _Id_SetImplementationValue(d As __Customer.DetailsClass, v As Integer)
                    d.ImplementationEntity.Id = v
                End Sub
                Private Shared Sub _Id_OnValueChanged(e As __Customer)
                    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 __Customer, __Customer.DetailsClass, Byte()).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, Byte()).Entry( _
                        "RowVersion", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._RowVersion_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._RowVersion_ComputeIsReadOnly, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._RowVersion_Validate, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._RowVersion_GetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._RowVersion_SetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._RowVersion_OnValueChanged)
                Private Shared Sub _RowVersion_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, Byte()).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._RowVersion, sf)
                End Sub
                Private Shared Function _RowVersion_ComputeIsReadOnly(e As __Customer) As Boolean
                    Dim result As Boolean = False
                    e.RowVersion_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _RowVersion_Validate(e As __Customer, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.RowVersion_Validate(r)
                End Sub
                Private Shared Function _RowVersion_GetImplementationValue(d As __Customer.DetailsClass) As Byte()
                    Return d.ImplementationEntity.RowVersion
                End Function
                Private Shared Sub _RowVersion_SetImplementationValue(d As __Customer.DetailsClass, v As Byte())
                    d.ImplementationEntity.RowVersion = v
                End Sub
                Private Shared Sub _RowVersion_OnValueChanged(e As __Customer)
                    e.RowVersion_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly LastName As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry( _
                        "LastName", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._LastName_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._LastName_ComputeIsReadOnly, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._LastName_Validate, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._LastName_GetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._LastName_SetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._LastName_OnValueChanged)
                Private Shared Sub _LastName_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._LastName, sf)
                End Sub
                Private Shared Function _LastName_ComputeIsReadOnly(e As __Customer) As Boolean
                    Dim result As Boolean = False
                    e.LastName_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _LastName_Validate(e As __Customer, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.LastName_Validate(r)
                End Sub
                Private Shared Function _LastName_GetImplementationValue(d As __Customer.DetailsClass) As String
                    Return d.ImplementationEntity.LastName
                End Function
                Private Shared Sub _LastName_SetImplementationValue(d As __Customer.DetailsClass, v As String)
                    d.ImplementationEntity.LastName = v
                End Sub
                Private Shared Sub _LastName_OnValueChanged(e As __Customer)
                    e.LastName_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly FirstName As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry( _
                        "FirstName", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._FirstName_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._FirstName_ComputeIsReadOnly, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._FirstName_Validate, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._FirstName_GetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._FirstName_SetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._FirstName_OnValueChanged)
                Private Shared Sub _FirstName_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._FirstName, sf)
                End Sub
                Private Shared Function _FirstName_ComputeIsReadOnly(e As __Customer) As Boolean
                    Dim result As Boolean = False
                    e.FirstName_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _FirstName_Validate(e As __Customer, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.FirstName_Validate(r)
                End Sub
                Private Shared Function _FirstName_GetImplementationValue(d As __Customer.DetailsClass) As String
                    Return d.ImplementationEntity.FirstName
                End Function
                Private Shared Sub _FirstName_SetImplementationValue(d As __Customer.DetailsClass, v As String)
                    d.ImplementationEntity.FirstName = v
                End Sub
                Private Shared Sub _FirstName_OnValueChanged(e As __Customer)
                    e.FirstName_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Phone As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry( _
                        "Phone", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Phone_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Phone_ComputeIsReadOnly, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Phone_Validate, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Phone_GetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Phone_SetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Phone_OnValueChanged)
                Private Shared Sub _Phone_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._Phone, sf)
                End Sub
                Private Shared Function _Phone_ComputeIsReadOnly(e As __Customer) As Boolean
                    Dim result As Boolean = False
                    e.Phone_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Phone_Validate(e As __Customer, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Phone_Validate(r)
                End Sub
                Private Shared Function _Phone_GetImplementationValue(d As __Customer.DetailsClass) As String
                    Return d.ImplementationEntity.Phone
                End Function
                Private Shared Sub _Phone_SetImplementationValue(d As __Customer.DetailsClass, v As String)
                    d.ImplementationEntity.Phone = v
                End Sub
                Private Shared Sub _Phone_OnValueChanged(e As __Customer)
                    e.Phone_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Email As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry( _
                        "Email", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Email_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Email_ComputeIsReadOnly, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Email_Validate, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Email_GetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Email_SetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Email_OnValueChanged)
                Private Shared Sub _Email_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._Email, sf)
                End Sub
                Private Shared Function _Email_ComputeIsReadOnly(e As __Customer) As Boolean
                    Dim result As Boolean = False
                    e.Email_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Email_Validate(e As __Customer, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Email_Validate(r)
                End Sub
                Private Shared Function _Email_GetImplementationValue(d As __Customer.DetailsClass) As String
                    Return d.ImplementationEntity.Email
                End Function
                Private Shared Sub _Email_SetImplementationValue(d As __Customer.DetailsClass, v As String)
                    d.ImplementationEntity.Email = v
                End Sub
                Private Shared Sub _Email_OnValueChanged(e As __Customer)
                    e.Email_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Street As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry( _
                        "Street", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Street_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Street_ComputeIsReadOnly, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Street_Validate, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Street_GetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Street_SetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Street_OnValueChanged)
                Private Shared Sub _Street_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._Street, sf)
                End Sub
                Private Shared Function _Street_ComputeIsReadOnly(e As __Customer) As Boolean
                    Dim result As Boolean = False
                    e.Street_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _Street_Validate(e As __Customer, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Street_Validate(r)
                End Sub
                Private Shared Function _Street_GetImplementationValue(d As __Customer.DetailsClass) As String
                    Return d.ImplementationEntity.Street
                End Function
                Private Shared Sub _Street_SetImplementationValue(d As __Customer.DetailsClass, v As String)
                    d.ImplementationEntity.Street = v
                End Sub
                Private Shared Sub _Street_OnValueChanged(e As __Customer)
                    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 __Customer, __Customer.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry( _
                        "StreetLine2", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._StreetLine2_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._StreetLine2_ComputeIsReadOnly, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._StreetLine2_Validate, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._StreetLine2_GetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._StreetLine2_SetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._StreetLine2_OnValueChanged)
                Private Shared Sub _StreetLine2_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._StreetLine2, sf)
                End Sub
                Private Shared Function _StreetLine2_ComputeIsReadOnly(e As __Customer) As Boolean
                    Dim result As Boolean = False
                    e.StreetLine2_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _StreetLine2_Validate(e As __Customer, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.StreetLine2_Validate(r)
                End Sub
                Private Shared Function _StreetLine2_GetImplementationValue(d As __Customer.DetailsClass) As String
                    Return d.ImplementationEntity.StreetLine2
                End Function
                Private Shared Sub _StreetLine2_SetImplementationValue(d As __Customer.DetailsClass, v As String)
                    d.ImplementationEntity.StreetLine2 = v
                End Sub
                Private Shared Sub _StreetLine2_OnValueChanged(e As __Customer)
                    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 __Customer, __Customer.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry( _
                        "City", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._City_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._City_ComputeIsReadOnly, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._City_Validate, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._City_GetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._City_SetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._City_OnValueChanged)
                Private Shared Sub _City_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._City, sf)
                End Sub
                Private Shared Function _City_ComputeIsReadOnly(e As __Customer) As Boolean
                    Dim result As Boolean = False
                    e.City_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _City_Validate(e As __Customer, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.City_Validate(r)
                End Sub
                Private Shared Function _City_GetImplementationValue(d As __Customer.DetailsClass) As String
                    Return d.ImplementationEntity.City
                End Function
                Private Shared Sub _City_SetImplementationValue(d As __Customer.DetailsClass, v As String)
                    d.ImplementationEntity.City = v
                End Sub
                Private Shared Sub _City_OnValueChanged(e As __Customer)
                    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 __Customer, __Customer.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Entry( _
                        "PostalCode", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._PostalCode_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._PostalCode_ComputeIsReadOnly, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._PostalCode_Validate, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._PostalCode_GetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._PostalCode_SetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._PostalCode_OnValueChanged)
                Private Shared Sub _PostalCode_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._PostalCode, sf)
                End Sub
                Private Shared Function _PostalCode_ComputeIsReadOnly(e As __Customer) As Boolean
                    Dim result As Boolean = False
                    e.PostalCode_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _PostalCode_Validate(e As __Customer, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.PostalCode_Validate(r)
                End Sub
                Private Shared Function _PostalCode_GetImplementationValue(d As __Customer.DetailsClass) As String
                    Return d.ImplementationEntity.PostalCode
                End Function
                Private Shared Sub _PostalCode_SetImplementationValue(d As __Customer.DetailsClass, v As String)
                    d.ImplementationEntity.PostalCode = v
                End Sub
                Private Shared Sub _PostalCode_OnValueChanged(e As __Customer)
                    e.PostalCode_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Summary As Global.Microsoft.LightSwitch.Details.Framework.EntityComputedProperty(Of __Customer, __Customer.DetailsClass, String).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityComputedProperty(Of __Customer, __Customer.DetailsClass, String).Entry( _
                        "Summary", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Summary_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Summary_Validate, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Summary_ComputeValue)
                Private Shared Sub _Summary_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityComputedProperty(Of __Customer, __Customer.DetailsClass, String).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._Summary, sf)
                End Sub
                Private Shared Sub _Summary_Validate(e As __Customer, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.Summary_Validate(r)
                End Sub
                Private Shared Function _Summary_ComputeValue(e As __Customer) 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 __Customer, __Customer.DetailsClass, Global.LightSwitchApplication.State).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Customer, __Customer.DetailsClass, Global.LightSwitchApplication.State).Entry( _
                        "State", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._State_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._State_ComputeIsReadOnly, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._State_Validate, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._State_GetCoreImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._State_GetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._State_SetImplementationValue, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._State_Refresh, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._State_OnValueChanged)
                Private Shared Sub _State_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Customer, __Customer.DetailsClass, Global.LightSwitchApplication.State).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._State, sf)
                End Sub
                Private Shared Function _State_ComputeIsReadOnly(e As __Customer) As Boolean
                    Dim result As Boolean = False
                    e.State_IsReadOnly(result)
                    Return result
                End Function
                Private Shared Sub _State_Validate(e As __Customer, r As Global.Microsoft.LightSwitch.EntityValidationResultsBuilder)
                    e.State_Validate(r)
                End Sub
                Private Shared Function _State_GetCoreImplementationValue(d as __Customer.DetailsClass) As Global.Microsoft.LightSwitch.Internal.IEntityImplementation
                    Return d.ImplementationEntity.State
                End Function
                Private Shared Function _State_GetImplementationValue(d as __Customer.DetailsClass) As Global.LightSwitchApplication.State
                    Return d.GetImplementationValue(Of Global.LightSwitchApplication.State, Global.LightSwitchApplication.State.DetailsClass)(__Customer.DetailsClass.PropertySetProperties.State, d._State)
                End Function
                Private Shared Sub _State_SetImplementationValue(d As __Customer.DetailsClass, v As Global.LightSwitchApplication.State)
                    d.SetImplementationValue(__Customer.DetailsClass.PropertySetProperties.State, d._State, Sub(i, ev) i.State = ev, v)
                End Sub
                Private Shared Sub _State_Refresh(d As __Customer.DetailsClass)
                    d.RefreshNavigationProperty(__Customer.DetailsClass.PropertySetProperties.State, d._State)
                End Sub
                Private Shared Sub _State_OnValueChanged(e As __Customer)
                    e.State_Changed()
                End Sub
    
                <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
                Public Shared ReadOnly Appointments As Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Customer, __Customer.DetailsClass, Global.LightSwitchApplication.Appointment).Entry = _
                    New Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Customer, __Customer.DetailsClass, Global.LightSwitchApplication.Appointment).Entry( _
                        "Appointments", _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Appointments_Stub, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Appointments_GetReferencedEntities, _
                        AddressOf __Customer.DetailsClass.PropertySetProperties._Appointments_GetEntityCollection)
                Private Shared Sub _Appointments_Stub(c As Global.Microsoft.LightSwitch.Details.Framework.Base.DetailsCallback(Of __Customer.DetailsClass, Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Customer, __Customer.DetailsClass, Global.LightSwitchApplication.Appointment).Data), d As __Customer.DetailsClass, sf As Object)
                    c(d, d._Appointments, sf)
                End Sub
                Private Shared Function _Appointments_GetReferencedEntities(d As __Customer.DetailsClass) As Global.System.Collections.Generic.IEnumerable(Of Global.LightSwitchApplication.Appointment)
                    Return d.GetReferencedEntities(Of Global.LightSwitchApplication.Appointment, Global.LightSwitchApplication.Appointment.DetailsClass)(__Customer.DetailsClass.PropertySetProperties.Appointments, d._Appointments)
                End Function
                Private Shared Function _Appointments_GetEntityCollection(d As __Customer.DetailsClass) As Global.System.Collections.IEnumerable
                    Return d.ImplementationEntity.Appointments
                End Function
    
            End Class
    
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Id As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, Integer).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _RowVersion As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, Byte()).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _LastName As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _FirstName As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Phone As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Email As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Street As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _StreetLine2 As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _City As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _PostalCode As Global.Microsoft.LightSwitch.Details.Framework.EntityStorageProperty(Of __Customer, __Customer.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Summary As Global.Microsoft.LightSwitch.Details.Framework.EntityComputedProperty(Of __Customer, __Customer.DetailsClass, String).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _State As Global.Microsoft.LightSwitch.Details.Framework.EntityReferenceProperty(Of __Customer, __Customer.DetailsClass, Global.LightSwitchApplication.State).Data
            
            <Global.System.Diagnostics.DebuggerBrowsable(Global.System.Diagnostics.DebuggerBrowsableState.Never)> _
            Private _Appointments As Global.Microsoft.LightSwitch.Details.Framework.EntityCollectionProperty(Of __Customer, __Customer.DetailsClass, Global.LightSwitchApplication.Appointment).Data
            
        End Class
    
        #End Region
    
    End Class
    
    #End Region
End Namespace