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.0Auto Generating SqlDatAProvider and Related Classes?Auto Generating SqlDatAProvider and Related Classes?
Previous
 
Next
New Post
9/4/2006 11:15 AM
 

Thanks, I browsed your site again and like what I see.

I'm concerned about required Web.Config entrees. It's no big deal to put Web.config entries in a developement environment but it's a big deal for production since the DNN module Installer does not support web config entries.

Are these web.config entrees required for finished production modules? Workaround?

 
New Post
9/4/2006 11:58 AM
 
Right now there is no way to run without the config entries. Although they are trivial, as you noted there is no way to automate these entries through dnn. We are investigating posibilities such as auto detecting a standard dnn connection string entry, and just running that as a fallback mechanism. However, we are just releasing our 1.5 Beta 2, so this will be sometime after that. So in summation, yes we are aware of why this might be less than favorable for dnn usage, and are evaluating our alternatives.
 
New Post
9/4/2006 1:00 PM
 

>> evaluating our alternatives

Please consider

A DNN developer can easily retrive wth a line or two of code the SiteSqlServer connection string from the DNN Web.config

There are module deveolpers that in the same module need to access the DNN site database and also need to access other enterprise databases that require a different connection string. Often these connection strings are stored along with the modules other settings in the DNN database.

Thanks,

Bobby


 

 

 
New Post
9/4/2006 2:16 PM
 
Assuming the second database is also a SQL server and you have already generated your business objects for whatever tables you would like to access you can already pass in a raw connection string to switch dynamically at runtime in code like so:

EntitySpaces Class Library

esConnection.ConnectionString Property

[Visual Basic]
Public Property ConnectionString As String
[C#]
public String ConnectionString {get; set;}

Usage:

EmployeeCollection emps = new EmployeeCollection();
emps.es.esConnection.ConnectionString = " my raw connection string";

emps.LoadAll();


If its a different type of db there are a few other settings such as MetadataMap that would be needed. See here for more information regarding this topic

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Auto Generating SqlDatAProvider and Related Classes?Auto Generating SqlDatAProvider and Related Classes?


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