12
DotNetNuke® Web Application Framework Michael Washington http:// www.ADefwebserver.com [email protected] Socaldug.org – Buena Park, CA - 2006 Creating a DotNetNuke Module using the DAL+

DotNetNuke® Web Application Framework Michael Washington [email protected] Socaldug.org – Buena Park, CA - 2006

Embed Size (px)

Citation preview

Page 1: DotNetNuke® Web Application Framework Michael Washington  Webmaster@ADefwebserver.com Socaldug.org – Buena Park, CA - 2006

DotNetNuke®Web Application Framework

Michael Washington

http://www.ADefwebserver.com

[email protected]

Socaldug.org – Buena Park, CA - 2006 Creating a DotNetNuke Module using the DAL+

Page 2: DotNetNuke® Web Application Framework Michael Washington  Webmaster@ADefwebserver.com Socaldug.org – Buena Park, CA - 2006

Presenter Michael Washington [email protected] Core member of DotNetNuke® Creator of the

Creating a DotNetNuke® Module For absolute beginners! series of tutorials

Page 3: DotNetNuke® Web Application Framework Michael Washington  Webmaster@ADefwebserver.com Socaldug.org – Buena Park, CA - 2006

Agenda

DotNetNuke® Overview The DAL+ Demo Questions

Page 4: DotNetNuke® Web Application Framework Michael Washington  Webmaster@ADefwebserver.com Socaldug.org – Buena Park, CA - 2006

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

Page 5: DotNetNuke® Web Application Framework Michael Washington  Webmaster@ADefwebserver.com Socaldug.org – Buena Park, CA - 2006

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

Page 6: DotNetNuke® Web Application Framework Michael Washington  Webmaster@ADefwebserver.com Socaldug.org – Buena Park, CA - 2006

Modules

Design

Create Module Project

(Developer)

Replace

Implement Custom

Functionality

(Developer)

Package

Package Module for Installation(Developer)

Deploy

Install into Portal

(Admin)

Page 7: DotNetNuke® Web Application Framework Michael Washington  Webmaster@ADefwebserver.com Socaldug.org – Buena Park, CA - 2006

Previous development process(DNN 3)

Configuration was difficult Data Access Layer was difficult to understand

Page 8: DotNetNuke® Web Application Framework Michael Washington  Webmaster@ADefwebserver.com Socaldug.org – Buena Park, CA - 2006

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

Page 9: DotNetNuke® Web Application Framework Michael Washington  Webmaster@ADefwebserver.com Socaldug.org – Buena Park, CA - 2006

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.

Page 10: DotNetNuke® Web Application Framework Michael Washington  Webmaster@ADefwebserver.com Socaldug.org – Buena Park, CA - 2006

The DAL+

Public Function GetItems(ByVal ModuleId As Integer) As ArrayListReturn CBO.FillCollection(DataProvider.Instance().ExecuteReader("GetItems",ModuleId), GetType(ItemInfo))End Function

Page 11: DotNetNuke® Web Application Framework Michael Washington  Webmaster@ADefwebserver.com Socaldug.org – Buena Park, CA - 2006

Demo Create DAL+ “Things For Sale” Module

Page 12: DotNetNuke® Web Application Framework Michael Washington  Webmaster@ADefwebserver.com Socaldug.org – Buena Park, CA - 2006

Questions?