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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...BrandonHaynes.ModelAdapter.DotNetNukeDataContextBrandonHaynes.ModelAdapter.DotNetNukeDataContext
Previous
 
Next
New Post
2/21/2009 8:07 PM
 

 Hi Brandon

I was able to get it work with creating a seperate LINQ library. The advantage/disadvantage is that it completely bypasses the Provider model that we use with the traditional DNN development. Personally I think I will use LINQ DBML for table related to my module only, but thats just me.

I will post a tutorial on how to do this on my site www.dnnmine.com . I have some writing to do now, I suppose.

Thanks all

 

 


 

 
New Post
2/21/2009 10:01 PM
 

DNN Coder wrote
 

Personally I think I will use LINQ DBML for table related to my module only, but thats just me.

This is the recommended way of doing things. You never want to call core tables directly, always use the API calls.

Unless you are working on a proposal to submit to the Core  :)



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
2/25/2009 6:25 PM
 

Hi DNN Coder,

Sounds like you have an excellent grasp of where you need to be.  The Linq to SQL layer is designed to replace the traditional data-provider model used historically in modules; the provider model allow for the targeting of multiple persistent stores, but this has not been (largely) realized in practice. 

You are also completely correct -- it is never advisable to link directly to any core framework tables, views, or procedures.  This risks serious issues with future compatibility.

Let me know if you put something together relating to the use of the adapters; I'm always eager to see how my work has been used in production environment!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
3/19/2009 4:44 PM
 

Hi Brandon,

Just saw this post of your. DNN Notifications doesnt send me emails I guess.

Anyway, I saw that your blog is at  blogs.law.harvard.edu and then read the "About" page on you blog. I was pleased find another DotNetNuker in the Boston area. 

Maybe we can have a beer someday in John Harvard's

- Prashant aka DNN Coder

 


 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...BrandonHaynes.ModelAdapter.DotNetNukeDataContextBrandonHaynes.ModelAdapter.DotNetNukeDataContext


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