O'Reilly logo

Building Websites with DotNetNuke 5 by Ian Lackey, Michael Washington

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

Chapter 8. Connecting to the Database

In this chapter, we are going to continue developing the custom module for the Coffee Connections portal. In the previous chapter, we set up our development environment and created custom web controls. In this chapter, we will connect the module to the database. The areas that will be covered are:

  • Comparing data access layers
  • Create the LINQ to SQL DataContext class
  • Complete the Coffee Shop Listing module
    • The Settings page
    • The EditShopList page
    • The ShopList page

The DAL, DAL+, and Linq to SQL

This chapter will demonstrate using Linq to SQL to connect the module to the database. However, the DotNetNuke core code uses a method called the data access layer (DAL) to connect to the database and also provides another method ...

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