Oky doky, here we go…
We’ve seen all the launch material, presentations, videos, MSDN stuff, blogs, and even followed the forums. Now it is time to sink some teeth into this LightSwitch.
Here’s the deal though. Instead of doing a one-off post on the end-to-end process of creating an application. I am going to take a methodical approach to creating some chaos by developing an application using LightSwitch.
Some small business friends of mine have been asking for a time tracking and invoicing type application from some time now. Creating this using LightSwitch will be a great opportunity to learn something new as well as potentially help some of these small business folks as well – a win-win you might say.
Thing is though is that I like to learn how things work by breaking them; and it’s not by choice. Kind of like the old cassette tape recorder I had as a kid. I think I spilled some pop on it and ruined the tape reading thingie. ?But it did end up making a great motorized rappelling device for my GI Joe. I am going to start creating an application and as I go I am going to see what I break or do wrong, and hopefully learn from it, which is why I writing these articles, because sometimes I forget… What was I talking about? Oh yea. LightSwitch. Let’s get started.
Starting LightSwitch
Because I am a SuperSoftwareMegaHyperEngineerGlobalProfessionalArchitect developer, I will not bother you by telling you about my blindingly superior credentials. Instead, I will awe you with a demonstration of….SQUIRREL!!
So I fire up Visual Studio 2010 because I heard that if you already have Visual Studio installed, LightSwitch will integrate as Visual Studio C# and VB project templates.
Crap! My first fail of the demo already. Looking at the New Project dialog I find that there are no LightSwitch templates. All I see is a “No Items Found” templates pane.
Yes, okay smarty pants, you can see the problem. LightSwitch creates applications that, under the hood, use .Net 4 built stuff like entity framework and WFC RIA Services (more stuff we’ll wreak havoc on later). So, I simply select .NET Framework 4 from the framework dropdown box and {throw pepper spice on beef dish and yell?explicative?here}, I see a couple of LightSwitch project templates.
Selecting a Template
Because I am a such a?sophisticated, highly refined developer with a flair for?semantics, I select the LightSwitch (Visual Basic) template. Don’t get me wrong. I don’t mind C# it’s just not my lifestyle. I have some C# friends, and they are very nice people. They just beat to a different drummer, that’s all. Not that there is anything wrong with that!
Before I proceed, I first have to give my new project a name. To name my application I carefully consider what I want to create. I want create to something that;
- manages company stakeholder information, such as customers, vendors, and employees,
- allows employees to input time, material, and expense information,
- allows managers to approve time sheets and create invoiced, And
- is delivered as an application service via the Interweb.
…I enter “MyFirstApplication” in the Name field and press the OK button.
With that, LightSwitch works its magic and creates a project within Visual Studio. The first thing that I see within the IDE is a designer window titled “MyFirstApplication Designer”. ?The IDE also shows the project definition with a couple of folders in it.
And as you may have already noticed, I have a critical Visual Studio feature docked to the left of my IDE. This is a very important feature that without, I wouldn’t be the hugely successful developer that I am today…
And on that, I believe I have provided enough for you to really, really think about for one day. Actually, Photoshop is starting spin my cooling fan so fast that my laptop is starting to hover on my desk. Time to shut it down.
In my next post, I will start telling my application about the data it is going to use. And just like Jason and the Argonauts?fighting to fluid moving skeletons on the top of the mountain, I am going to slay me some business entities.
Cheers!
Popularity: 37% [?]











