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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How do i use same BLL and DAL for #modulesHow do i use same BLL and DAL for #modules
Previous
 
Next
New Post
9/28/2009 1:01 PM
 

This may be something that's entirely wrong, but what I would want to do is to use the same BLL and DAL for multiple modules. Is there someone who knows how to implement this or a good tutorial? I was thinking about creating a different assembly and just adding a reference to this assembly in DNN. But I have no idea on how to do this. Further it would be nice if a module is installed that requires an updated version of this assembly it would also be updated. Right now, I have the BLL and DAL in the App_Code folder. And to distribute it I've created a package with all files in (from BLL, DAL and module), but I think this will always overwrite the files installed by previous modules.

A Scheme:

module 1 ->

module 2 ->  BLL -> DAL

module 3 ->

Thx in advance

 
New Post
9/28/2009 5:25 PM
 

If you create a BLL and/or DAL library, they should be in a separate assemble and then referenced NOT by DNN but by the module that will consuming it (if I understand you correctly).


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
9/28/2009 11:53 PM
 

It's easy to create a separate BLL and DAL component as a separate DLL : indeed this is the way most modules work.  The trick is really in the design and architecture of your module how you package it together and use your namespaces.    If you package all of your module into one extension, then you'll have no problem including a single dll for the BLL and for the DAL.  If you package the same file into different module packages, then you could run into trouble with versioning if you're not careful about binary compatibility and different versions.

 
New Post
9/29/2009 5:13 AM
 

This is all exactly what I want, but I can't seem to realise it. Adding all the references and things like that. How do you add a reference to a module? I can't find the normal way (add reference link or properties window)

 
New Post
9/29/2009 10:20 AM
 

Sounds like you are new not only to DNN but also .Net development.  You add a reference to the Web Application Project by Right Clicking the References node in the project treeview and selecting Add Reference.  I think you could benefit from reviewing a few of the tutorials at two difference sites to ramp up.  I have listed the sites below.  Both charge a nominal fee, but it is small and Well Worth it.

LearnVisualStudio.Net This site offers simple to follow tutorials on developing in .Net and using Visual Studio (any edition).

DNNCreative.com This site is specific to DNN and offers articles and video tutorials that range from admin how toos to development tutorials.

There is another site "Engage" that you may want to check out, however I do not know what they charge, but they are the official DNN Training Provider.

I think these resources will get you where you want to go.
 


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How do i use same BLL and DAL for #modulesHow do i use same BLL and DAL for #modules


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