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
  • DownloadDownload
  • PrintPrint

6.3. Solution

In coding the solution, you'll follow the same path you used in the Design section: from database table creation, to the implementation of security, to the model, view, and controller.

6.3.1. Implementing the Configuration Module

The ArticlesElement class is implemented in the ~/Configuration/ArticlesElement.cs file. It descends from System.Configuration.ConfigurationElement and implements the properties that map the attributes of the <articles> element under the <theBeerHouse> custom section in the web.config file. The properties, listed and described in the Design section, are bound to the XML settings by means of the ConfigurationProperty attribute. Here's its 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
  • DownloadDownload
  • PrintPrint