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 ForumsForumForummissing DataProvider?missing DataProvider?
Previous
 
Next
New Post
3/27/2008 8:56 PM
 

I'm trying to add an additional string attribute to posts and am having trouble with the DataProvider. I have added the argument to the PostAdd and PostUpdate methods in the SqlDataProvider and then updated the related functions in the ForumDataProvider to match thinking that this was the DataProvider that the SqlDataProvider inhertied its methods from.

This does not seem to be the case however as I am now getting an error indicating that the SqlDataProvider no longer overrides the MustInherit members in the "DotNetNuke.Modules.Forum.DataProvider" and lists the functions the same as they appear in the ForumDataProvider except missing "ByVal" in front of each parameter. I can't find any other DataProvider that this error might be referring to...

does any know where this elusive extra DataProvider resides? I have installed both the DotNetNuke and the Forum source file packages, but still the only other DataProvider I find is the HTML one that is not relavent in this case.

Thanks.

Margaret

 
New Post
3/30/2008 12:29 AM
 

Concrete data provider types, just like HTML provider types, are set in the web.config at the core level. Then, what happens is the concrete SQL data provider written and packaged with the core Forum module overrides the abstract methods within the Forum module. So, to clarify:

The SQL stored procedures, views, tables, are built using the various xx.xx.xx.SqlDataProvider files. 
DesktopModules\Forum\Providers\DataProviders\SqlDataProvider\SqlDataProvider.vb contains the concrete SQL Data Provider methods which communicate with the stored procedures in the SQL Server instance.
DesktopModules\Forum\Components\Providers\Data\ForumDataProvider.vb contains the abstract methods.
The various controller classes communicate with the abstract data provider.
The business logic communicates with the various controller classes.


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
3/30/2008 4:03 PM
 

Thanks Crispy for the reply; I didn't realize the role of the xx.xx.xx.SqlDataProvider files before. Those files don't effect the error I still get in the concret provider however.

For example, the PostAdd method in the concrete provider (DesktopModules\Forum\Providers\DataProviders\SqlDataProvider\SqlDataProvider.vb) still gives me the error "function 'PostAdd' cannot be declared 'Overrides' because it does not overrides a function in a base class". The PostAdd function in the abstract provider (DesktopModules\Forum\Components\Providers\Data\ForumDataProvider.vb) has the exact same arguments however and should therefore be overriden by the concrete provider's PostAdd without a problem.

Does anyone have any ideas as to how to fix the error? Could "base class" refer to something other than the abstract provider?

Thanks,

Margaret

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForummissing DataProvider?missing DataProvider?


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