Click here to Skip to main content
15,886,795 members
Articles / Programming Languages / C# 4.0

A Random Walk Through of the LightSwitch Data Model

Rate me:
Please Sign up or sign in to vote.
4.93/5 (20 votes)
10 Sep 2011Ms-PL4 min read 41.4K   563   22  
We will create a Silverlight Custom Control called “LightSwitch Explorer” that will display information about the collections of the screen that it is displayed on, raise methods, and switch screens.
  • LightSwitchExplorer.zip
    • LightSwitchExplorer.sln
    • LightSwitchExplorer
      • _Pvt_Extensions
        • Microsoft.LightSwitch.Extensions
          • Client
            • DebugOnlyRef
              • Microsoft.LightSwitch.Extensions.Design.Client.dll
          • ClientGen
            • Reference
              • ar
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • bg
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • ca
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • cs
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • da
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • de
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • el
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • es
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • et
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • eu
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • fi
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • fr
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • he
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • hr
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • hu
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • id
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • it
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • ja
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • ko
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • lt
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • lv
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • Microsoft.LightSwitch.Extensions.Client.dll
              • ms
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • nl
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • no
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • pl
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • pt
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • pt-BR
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • ro
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • ru
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • sk
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • sl
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • sr-Cyrl-CS
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • sr-Latn-CS
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • sv
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • th
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • tr
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • uk
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • vi
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • zh-Hans
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
              • zh-Hant
                • Microsoft.LightSwitch.Extensions.Client.Resources.dll
          • IDE
            • Reference
              • de
                • Microsoft.LightSwitch.Extensions.Design.Resources.dll
              • es
                • Microsoft.LightSwitch.Extensions.Design.Resources.dll
              • fr
                • Microsoft.LightSwitch.Extensions.Design.Resources.dll
              • it
                • Microsoft.LightSwitch.Extensions.Design.Resources.dll
              • ja
                • Microsoft.LightSwitch.Extensions.Design.Resources.dll
              • ko
                • Microsoft.LightSwitch.Extensions.Design.Resources.dll
              • Microsoft.LightSwitch.Extensions.Design.dll
              • ru
                • Microsoft.LightSwitch.Extensions.Design.Resources.dll
              • zh-Hans
                • Microsoft.LightSwitch.Extensions.Design.Resources.dll
              • zh-Hant
                • Microsoft.LightSwitch.Extensions.Design.Resources.dll
          • LsPkgLastWriteTime.txt
          • ServerGen
            • Reference
              • ar
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • bg
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • ca
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • cs
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • da
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • de
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • el
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • es
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • et
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • eu
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • fi
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • fr
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • he
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • hr
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • hu
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • id
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • it
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • ja
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • ko
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • lt
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • lv
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • Microsoft.LightSwitch.Extensions.Server.dll
              • ms
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • nl
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • no
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • pl
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • pt
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • pt-BR
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • ro
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • ru
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • sk
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • sl
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • sr-Cyrl-CS
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • sr-Latn-CS
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • sv
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • th
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • tr
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • uk
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • vi
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • zh-Hans
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
              • zh-Hant
                • Microsoft.LightSwitch.Extensions.Server.Resources.dll
      • app.config
      • Bin
        • Data
          • ApplicationDatabase.mdf
          • ApplicationDatabase_log.ldf
          • Temp
        • Debug
          • bin
            • ar
            • bg
            • ca
            • cs
            • da
            • de
            • el
            • es
            • et
            • eu
            • fi
            • fr
            • he
            • hr
            • hu
            • id
            • it
            • ja
            • ko
            • lt
            • lv
            • Microsoft.LightSwitch.Design.Server.Internal.dll
            • ms
            • nl
            • no
            • pl
            • pt
            • pt-BR
            • ro
            • ru
            • sk
            • sl
            • sr-Cyrl-CS
            • sr-Latn-CS
            • sv
            • th
            • tr
            • uk
            • vi
            • zh-Hans
            • zh-Hant
          • Data
          • VslsHost.exe
          • Web
            • Manifests
              • Microsoft.LightSwitch.Design.Server.Manifest.dll
      • Client
      • ClientGenerated
      • Common
      • Data
        • ApplicationDefinition.lsml
      • default.htm
      • LightSwitchExplorer.lsproj
      • LightSwitchExplorer.lsproj.user
      • Server
      • ServerGenerated
      • ServiceConfiguration.cscfg
      • ServiceDefinition.csdef
      • Silverlight.js
    • SilverlightControlLibrary

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{ECD6D718-D1CF-4119-97F3-97C25A0DFBF9}") = "LightSwitchExplorer", "LightSwitchExplorer\LightSwitchExplorer.lsproj", "{3FB02CC7-5223-4669-932D-76A69CE2DF91}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SilverlightControlLibrary", "SilverlightControlLibrary\SilverlightControlLibrary.csproj", "{F744E017-0436-44D6-875B-77EA6B429DA4}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectDependencies) = postSolution
		{28D441B1-4E43-40EA-8ACE-143E3A6FDFC7}.0 = {06664220-8762-4372-B5FC-2B72FFF12700}
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{3FB02CC7-5223-4669-932D-76A69CE2DF91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{3FB02CC7-5223-4669-932D-76A69CE2DF91}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{3FB02CC7-5223-4669-932D-76A69CE2DF91}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{3FB02CC7-5223-4669-932D-76A69CE2DF91}.Release|Any CPU.Build.0 = Release|Any CPU
		{4FEEA493-1AC3-4D1E-B851-6F085973D29B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{4FEEA493-1AC3-4D1E-B851-6F085973D29B}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{4FEEA493-1AC3-4D1E-B851-6F085973D29B}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{4FEEA493-1AC3-4D1E-B851-6F085973D29B}.Release|Any CPU.Build.0 = Release|Any CPU
		{4D0321E4-88EB-4CEB-9B57-3E28054B86EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{4D0321E4-88EB-4CEB-9B57-3E28054B86EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{4D0321E4-88EB-4CEB-9B57-3E28054B86EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{4D0321E4-88EB-4CEB-9B57-3E28054B86EF}.Release|Any CPU.Build.0 = Release|Any CPU
		{06664220-8762-4372-B5FC-2B72FFF12700}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{06664220-8762-4372-B5FC-2B72FFF12700}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{06664220-8762-4372-B5FC-2B72FFF12700}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{06664220-8762-4372-B5FC-2B72FFF12700}.Release|Any CPU.Build.0 = Release|Any CPU
		{28D441B1-4E43-40EA-8ACE-143E3A6FDFC7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{28D441B1-4E43-40EA-8ACE-143E3A6FDFC7}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{28D441B1-4E43-40EA-8ACE-143E3A6FDFC7}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{28D441B1-4E43-40EA-8ACE-143E3A6FDFC7}.Release|Any CPU.Build.0 = Release|Any CPU
		{D9724C9B-D7AB-48AA-BF81-FE8574E08BD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{D9724C9B-D7AB-48AA-BF81-FE8574E08BD7}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{D9724C9B-D7AB-48AA-BF81-FE8574E08BD7}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{D9724C9B-D7AB-48AA-BF81-FE8574E08BD7}.Release|Any CPU.Build.0 = Release|Any CPU
		{F744E017-0436-44D6-875B-77EA6B429DA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{F744E017-0436-44D6-875B-77EA6B429DA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{F744E017-0436-44D6-875B-77EA6B429DA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{F744E017-0436-44D6-875B-77EA6B429DA4}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
Software Developer (Senior) http://ADefWebserver.com
United States United States
Michael Washington is a Microsoft MVP. He is a ASP.NET and
C# programmer.
He is the founder of
AiHelpWebsite.com,
LightSwitchHelpWebsite.com, and
HoloLensHelpWebsite.com.

He has a son, Zachary and resides in Los Angeles with his wife Valerie.

He is the Author of:

Comments and Discussions