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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsExtending the usage to other databasesExtending the usage to other databases
Previous
 
Next
New Post
7/29/2006 10:31 AM
 
Hi,
Let me first say:
  • I'm new to ASP.NET (not to .NET)
  • I'm a big fan of DNN
  • I'm a developer and I would like to contribute
I have developed lately some modules that were including a GridView before realize that this project exists. My approach includes a Connection String to an OLEDB Provider, and a SQL Query. In the end the resulting DataTable was bound to the GridView. I was also able to create test buttons in the Settings to check the Connection and the SQL before publish it. I ran into problems when I actually start to create Paging and Sorting features. Everything works fine until I was log as Admin. With Registered User Right, I don't know why, the Paging fails and the event is not fired anymore..........

Today I'm changing my mind now that I've discovered the Reports module. I would like to join the approach used by the team but I lack the knowledge about DataProviders.

My questions are:
  • Can anyone tell me about DataProviders in the manner of my context?
  • Which is the right way to organize a module who want to connect existings database like Oracle, SQL Server, etc...? I want to configure in my module which database connect, It's ok to use a Connection String or I have to refer to DataProviders?

  • Can I use Reports as a Start Project?
Thanks in advance for any help
Kind Regards,
Danilo


 
New Post
9/19/2006 10:22 AM
 
Hi Danilo!

To answer your questions:

The purpose of DataProviders is to abstract away the concepts of SQL, Connection Strings, and other database-specific terminology so that the Module is not tied to a specific database system. If the module used Connection Strings and SQL directly, it would have to release separate versions if it wanted to support different databases, but with a DataProvider, users can just install a new DataProvider (assuming one exists for the other database) and the module would be none the wiser. It would continue working with the DataProvider in the same way as before, but the DataProvider is working with a different database server, such as Oracle.

You can write your module however you wish, of course, which direction you choose depends on your goal. If you want to display generic data by allowing users to enter a Connection String and SQL Query then the DataProvider architecture may be a bit more than you need. You could simply use ADO.Net directly.

Sure you can use Reports as a Start Project! DotNetNuke and its projects are Open-Source, so you can modify it and redistribute it (as long as you conform to the terms of the license which is at the top of every file). You can't use the name DotNetNuke in your modified module (yes that includes Namespaces and Class Names) because it is a Trademark, but you can use the code all you want! However, it looks like you want a system to display Reports (in a Grid or other form) that use data from other Databases, and that is a planned feature for the next release so you may wish to wait out the next version.

Thanks for the feedback

Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsExtending the usage to other databasesExtending the usage to other databases


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