Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Summary

In this chapter, you have learned how to access data in code. This chapter has:

  • described the data access objects that are generated by LightSwitch
  • showed you how to work with data on screens
  • illustrated the stages in the save pipeline
  • explained the purpose of change sets
  • described how transactions and concurrency are handled

LightSwitch generates data access objects with names that match the tables and fields that you have defined in your project. This makes it intuitive for you to write code that accesses data.

When writing client-side screen code, the Application object allows you to access the logged-on user and provides methods for accessing and opening screens.

When creating screens, the user interface elements are bound to screen properties that appear on the left side of the screen designer. You can programmatically access these properties in code by using the name of the property. Because UI elements are bound to screen properties, you can change the values that are shown in controls by modifying the screen property values in code.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint