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.0module using X tables/dataprovidersmodule using X tables/dataproviders
Previous
 
Next
New Post
6/6/2008 10:51 AM
 

What would be the next step to get the data into a control(.ascx)? I tried including all the fields from 3 tables as private properties in the info class but can't get it to display. So I was about to set up it's own controller and info classes and then create it's own control. I have get, delete, update, and add method separately for 4 tables (BusinessInfo, memberInfo, contractInfo, and paymentInfo) which works fine separately and then I threw in the stored procedure for getting data from all 3 tables in the files that handle members which results in it not working anymore. Question is do you have to create all separate files (controller.vb, info.vb) when dealing with multiple tables in order to use it in a control? It's so easy when just working with a web application, but creating a module is driving me crazy!

 
New Post
6/7/2008 8:43 AM
 

The reason for the DNN DAL is to act as a data abstraction layer.  That potentially allows modules to access
different data providers - MYSQL, ORACLE etc

But in reality - for most module developers - they have not real need for this sort of functionality.

As a result - unless you really need that sort of level of abstraction - you dont actually need to use the DAL at all
 - you can just do calls to SQL the same as any web application.

The DAL+ module outlined by Michael Washington elsewhere on this site basically follows this approach.
It still offers a object based access methodology but without the need for the complexitie of the full DAL model.

Going further beyond this - if your modules are for your own use - and you dont plan for public distribution
then you can even bypass this step - and just use calls to SQL yourself and handle the access the same 
as you would for any web application.

In reality - think of the DAL and DAL+ models as guidelines - even the DNN core developers have this attitude.
Since in recent months the advent of .net 3.5 and LINQtoSQL has thrown yet another option into the mix - which is
currently being recommended by Michael as the way to go for future DNN developments.

Westa

PS - LINQtoSQL is looking really great - but it does have a major deal breaker for DNN access - currently there is 
no easy way to implement the DNN prefix concept at the LINQtoSQL level

 
New Post
6/9/2008 9:12 AM
 

Wes,

Thank you so much for your response. I really appreciate the effort and patience in explaining it to me.

John

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0module using X tables/dataprovidersmodule using X tables/dataproviders


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