Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0To DAL or not to DAL, that is my question!To DAL or not to DAL, that is my question!
Previous
 
Next
New Post
10/16/2006 8:41 AM
 
How many DNN installs use a database other than SQL Server?  I already have a data access methodology that I use for .net applications, and I would rather not use the DNN DAL or DAL+ methodology for creating modules that I may sell.  It seems to me that most module developers only support SQL server anyway.  Why go through the trouble for the .01% of the people who may use your module on something other than SQL Server?

Am I off base?

Thanks,
Mike
 
New Post
10/16/2006 12:28 PM
 

The only other database I have ever used with DNN was Microsoft Access. This was back in 2.0

I don't know anybody that uses a different datasource then Microsoft Sql but I'm sure there are some out there.

As long as you notify people that buy your module that it only works with Microsoft Sql, why change what works for youi?

Dan5150


Dan5150
 
New Post
10/16/2006 2:13 PM
 

Mike,
Ultimately the choice is yours as a module developer whether to support other databases or not. However I will point out that the model that DNN has chosen for the DAL allows for the flexibility of other databases to be able to work with your module. In general, although you may not see modules for say Oracle (which DNN does work on btw), there are a lot of customers out there who are happy with the SQL Server version of the module but want to use it with say Oracle. In these types of scenarios, it is crucial that the module was developed using the DAL method proposed by the core, otherwise it is very hard to convert these modules to work with other databases.
You wouldn't know today how important your module might be to a potential Oracle user, but once you've developed it, it would be as easy to create the oracle version of the module and this might lead to another potential customer for you who may have not even considered your module.

I have received and converted several modules now to work against Oracle which were originally written for only SQL Server. Due to the fact that the module developers kept to the DAL Provider model, it was relatively painless in creating the oracle version of the module.

Sanjay

 


AcuitiDP - Oracle Data Provider for DotNetNuke
 
New Post
10/16/2006 8:38 PM
 

msant7 wrote
Why go through the trouble...

If you use the DAL+ you are making things easier on yourself. Using the DAL+ requires less code than coding the data acess methods manually.

All you need is code like this:

Public Shared Function ThingsForSale_SelectAll(ByVal ModuleId As Integer) As List(Of ThingsForSaleInfo)
    Return CBO.FillCollection(Of ThingsForSaleInfo)(CType(DataProvider.Instance().ExecuteReader("ThingsForSale_SelectAll", ModuleId), IDataReader))
End Function

and you're are connected to the database and you have a set of records. No need for an abstract data provider, no need for a concrete data provider, no need to set connection properties to the database.

AND you can still support multiple databases (like Oracle). (You have to be careful and use only simple stored procedures to support multiple databases)



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
10/17/2006 1:18 AM
 
Unless you need your module to support multiple database, then I agree with everyone else (why go throug all the trouble using DAL).  The choice is yours, but if only supporting SQL Server will not hurt your bottome line due to lost of customers that is what matters.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0To DAL or not to DAL, that is my question!To DAL or not to DAL, that is my question!


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out