Title: DotNetNuke
1DotNetNukeWeb Application Framework
Socaldug.org Buena Park, CA - 2006 Creating a
DotNetNuke Module using the DAL
Michael Washington http//www.ADefwebserver.com We
bmaster_at_ADefwebserver.com
2Presenter
- Michael Washington
- Webmaster_at_ADefWebserver.com
- Core member of DotNetNuke
- Creator of the Creating a DotNetNuke Module For
absolute beginners! series of tutorials
3Agenda
- DotNetNuke Overview
- The DAL
- Demo
- Questions
4DotNetNuke Overview
- Open Source Software Project ( BSD License )
- Windows Server / ASP.NET platform
- Released December 24, 2002
- Web Application Framework
- Based on N-Tier, Object Oriented, Best Practice
architecture - Used in private sector, public sector, military,
non-profit, community, and individual web sites - Active business ecosystem with hundreds of
vendors offering products and services - Incubator for complementary Open Source Projects
- Support for ASP.NET 1.1 and ASP.NET 2.0
5Modules
- Applications for managing a specific type of
portal Content - Allows you to extend DotNetNuke without modifying
the core framework. - Written in .NET code ( C, VB.NET, etc )
- Private Assemblies
- Run-time deployment
6Modules
Design
Create Module Project (Developer)
7Previous development process(DNN 3)
- Configuration was difficult
- Data Access Layer was difficult to understand
8New development process(DNN 4)
- Configuration is no longer needed using the new
ASP.NET 2.0 Website project model - The DAL simplifies the Data Access Layer
9The DAL
- You no longer have to code a separate data
provider - It adds Generic Methods to ease module
development. - ExecuteNonQuery - Used to execute a stored
procedure that will not return a value. - ExecuteReader - Used to execute a stored
procedure that will return multiple records. - ExecuteScalar - Used to execute a stored
procedure that will return a single value. - ExecuteSQL - Used to execute an sql statement.
10The DAL
Public Function GetItems(ByVal ModuleId As
Integer) As ArrayList Return CBO.FillCollection(Da
taProvider.Instance().ExecuteReader("GetItems",Mod
uleId), GetType(ItemInfo)) End Function
11Demo
- Create DAL Things For Sale Module
12Questions?