DotNetNuke® Web Application Framework Michael Washington Socaldug.org – Buena Park, CA Creating a DotNetNuke Module using the DAL+
Presenter Michael Washington Core member of DotNetNuke® Creator of the Creating a DotNetNuke® Module For absolute beginners! series of tutorialsCreating a DotNetNuke® Module For absolute beginners!
Agenda DotNetNuke® Overview The DAL+ Demo Questions
DotNetNuke® 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
Modules 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
Modules Design Create Module Project (Developer) Replace Implement Custom Functionality (Developer) Package Package Module for Installation (Developer) Deploy Install into Portal (Admin)
Previous development process (DNN 3) Configuration was difficult Data Access Layer was difficult to understand
New 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
The 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.
The DAL+ Public Function GetItems(ByVal ModuleId As Integer) As ArrayList Return CBO.FillCollection(DataProvider.Instance().ExecuteReader("GetItems",ModuleId), GetType(ItemInfo)) End Function
Demo Create DAL+ “Things For Sale” Module
Questions?