Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Creating a generic Data Provider?
Previous Previous
 
Next Next
New Post 1/31/2006 1:43 PM
User is offline Dennis Petersen
1 posts
www.loden.dk
10th Ranked


Creating a generic Data Provider? 

Hi all,

I understand that there are quite a few requests for using MySQL with DNN...

I also understand that no-one has made a Data Provider for DNN that can use MySQL as a DBMS...

Now I KNOW that there will be licensing issues by creating one that uses the MySQL Connector/Net by MySQL AB - but that is because it gets linked hard to the binary...

Why not make a generic Data Provider that implements IDataAdapter, IDbConnection, IDbCommand, IDataAdapter and IDataReader as a factory that instantiates these using string from Web.config->appSettings?

I did some small testing and found that it is quite possible using Activator.CreateInstance and this does not have to be such a poor performance issue if maintained properly in a connection pool that reuses the objects.

Also the DataSet wraps nicely around these interfaces, so I did find it to be most valuable...

Now I haven't even downloaded DNN yet (the tests were for my own use), so I don't know if there are any special architecture that prohibits the use of interfaces in DNN - You tell me?

Hint: I found that if I need to utilize SQL Server as well as MySQL I needed to configure the SQL Parameter Prefix to be able to use the parameterized commands - but hey that's just an entry in Web.config called SQLParameterPrefix that can be set to @ for SQL Server and ? for MySQL.

Why hasn't this been done?

Cheers,
Dennis P

 
New Post 2/1/2006 1:20 AM
User is offline Paul Hatcher
2 posts
10th Ranked


Re: Creating a generic Data Provider? 

I wrote such a library a little while a go called OmniClient; the only overhead it has is a prefix on the connection string as it's impossible to determine at runtime whose SQL you are processing.

One issue that might be encountered is the various syntax flavours of SQL.

You can get it at http://www.gotdotnet.com/Workspaces/Workspace.aspx?id=a21c314a-1920-4e5c-893a-b29ddcbf0f55

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Creating a generic Data Provider?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com
Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl
FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP