RSS 2.0
# Monday, August 23, 2010

Microsoft released a beta of Lightswitch the other day.  Here I’m going to do a run through of creating a simple application. I’m doing this without having read much of anything about Lightswitch.

image

So, choosing this project template and after a bunch of churning, we get presented with this:

image

Since this is a fresh new application, we’ll choose to create a new table.  Doing so, we are presented with this:

image

Let’s just make a simple contact table and later build from that.

image

Notice that there are properties associated with the entity that we are creating.  I’m guessing the properties on the generated class will be decorated with attributes from the DataAnnotations namespace.

For the State property, we’ll add a “Choice List” with a few states in the USA:

image

image

Next we’ll create a “screen” from the “Add” bar.

image

Before we do, let’s rename the “table” to “Contacts”

image

We’ll choose “List and Details Screen”, change the screen name to “ContactListDetails” and choose “Contacts” for the screen data:

image

We are now presented with this:

image

Ok, so let’s build it and run to see what we get.

image

Not bad for about 10 minutes worth of work.

Next we’ll play around with this form and see what else we can do.  There was no code written for this at all.  We’ll dig into the files that are created with this project and see what is generated behind the scenes.  Switching from the Logical View to the File View, we can see that there is a hierarchy of files to look into.

Technorati Tags: ,,
Monday, August 23, 2010 3:00:56 AM UTC  #    Comments [0] -
.NET | LightSwitch | Visual Studio
Comments are closed.
Archive
<February 2012>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2012
George Handlin
Sign In
Statistics
Total Posts: 51
This Year: 0
This Month: 0
This Week: 0
Comments: 9
All Content © 2012, George Handlin
DasBlog theme 'Business' created by Christoph De Baene (delarou)