Chapter 7. Creating the Module Back End

Now that you have learned about the components that create a DotNetNuke module and how the DotNetNuke DAL provides the needed development environment, it is time to tackle the creation of the module back end. This chapter starts out by defining the specific data access components that will be needed to facilitate the module's functionality. After providing this listing, you will create the DataProvider(.vb/.cs) and SqlDataProvider(.vb/.cs) files. You will then learn how to create the information objects that will be used to store the data while working inside the application. Specifically, you will create the Controller class, and this chapter concludes with you creating the .SqlDataProvider scripts needed to install the database components referenced by the module code.

By the end of this chapter, you will have created and properly configured the entire module back end to perform all needed data interactions.

Data Methods Needed

Chapter 4 outlined the data structure you use to create this module. It is now time to define the individual methods that are needed to facilitate the communication between the module and the database.

Table 7-1 lists each of the data methods that you must support to provide the desired functionality. The Return Type column shows the return value that will be passed from the DataProvider methods. Later in this chapter, when you create the Controller class, the IDataReader returns will be changed to more usable elements. ...

Get Professional DotNetNuke® Module Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.