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...Getting StartedGetting StartedModuleID in all Tables?ModuleID in all Tables?
Previous
 
Next
New Post
7/27/2010 9:52 PM
 
I'm creating a sports team module for a local HS Baseball team that will contain a Roster, Game Schedule, and Stats.  I've got my tables created in the DNN database and assoicated to each other but I'm not sure if I need to include the ModuleID FK relation in all the tables or just some if just some, if just some which ones do I include it in?

The current plan is for this to be one module that includes all the elements I mentioned above, thats the current plan.. 

Can anyone point me in the right direction?

Thanks,
Bob
 
New Post
7/28/2010 7:35 PM
 
typically i add the FK join to my main table e.g. i might have a baseballteam table and have a teamid and a moduleid (with the FK). I then might have a roster table, in which case I would use the teamid (FK to the baseballteam). On occasion I also have tables unrelated to the relational model of my module e.g. perhaps a HSBaseBallSettings table which could store a number of user settings that are intended to work across all instances so there is no moduleid used (note: you can utilise the ModuleSettings API for this but im using this as an example). In this case I simply ensure that I include a drop table instruction for this table in the uninstall script.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedModuleID in all Tables?ModuleID in all Tables?


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