O'Reilly logo

Pro Visual Studio LightSwitch 2011 Development by Yann Duran, Tim Leung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  4

Accessing Data from Code

Sooner or later, you will reach the limits of what you can achieve by using the graphical designers. To progress further, you will need to write code. LightSwitch provides a strong set of APIs to help you out in this task. There are many things that you can achieve through code, one of which is accessing data.

In this chapter, you will learn how to access your data by using code. This not only includes the data that you have defined through your data sources, but also security details such as the currently logged-on user. When data is committed to the database (or underlying data store), it passes through the save pipeline, and LightSwitch automatically manages the issues that relate to transactions ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required