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
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Common.Utilities only for simple data types? What about ArrayList?
Previous Previous
 
Next Next
New Post 4/19/2008 11:33 PM
User is offline SCH
2 posts
10th Ranked


Common.Utilities only for simple data types? What about ArrayList?  

Hi, there:

Here is what I've seen in the source code of DNN (http://www.koders.com/csharp/fid641216490C7D0566172636D6EBC1093A4CC94AB0.aspx)

It says:"

namespace DotNetNuke.Common.Utilities
{
/// <summary>
/// Class that hydrates custom business objects with data. Please
/// note that this utility class can only be used on objects with "simple"
/// data types. If the object contains "complex" data types such as
/// ArrayLists, HashTables, Custom Objects, etc... then the developer
/// will need to write custom code for the hydration of these "complex"
/// data types.
/// </summary>
"
My question is: how to write custom code for the hydration of ArrayList data types? I mean using function in DNN like:
private static object CreateObject( Type objType, IDataReader dr, ArrayList objProperties, int[] arrOrdinals )
Does DNN provide this now? Or can anyone provide me some links that explain how to do this for complex data types like ArrayList (either in DNN or using
other ways)?
 
The CreateObject method in utilities class above works good in converting a DataReader to my simple custom business class.
But now my custom business has ArrayList as class fields. I'm wondering if there is code provided now for converting a DataReader to custom business class with ArrayList data types.
Thanks a lot for any help, I appreciate it.
 
New Post 4/20/2008 6:47 AM
User is offline Stefan Cullmann
1396 posts
6th Ranked








Re: Common.Utilities only for simple data types? What about ArrayList?  

I don't know which answer fits best:


Stefan Cullmann - stefan.cullmann [at] dotnetnuke.com

forms & Lists (UDT5.0) will be the next major release of the User Defined Table project.
A first Preview is available, though it requires DotnetNuke 5 (Beta 5).

 
New Post 4/22/2008 11:51 PM
User is offline SCH
2 posts
10th Ranked


Re: Common.Utilities only for simple data types? What about ArrayList?  

Thanks a lot for your kind reply. Sorry I didn't know it was hacked code on that website. Also, sorry for posting to the wrong forum, I thought it was related with xml serialization.

But your reply answered my question. So thanks a lot again for your kind help.  

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  XML Module [Lea...  Common.Utilities only for simple data types? What about ArrayList?
 


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.

 


Live Visitor Tracking & Live Chat For DotNetNuke
Track your visitors in real time and add live chat for sales & support. Free Trial.
www.whoson.com
SINA101
WANT A SPECial sIte iN TAIWAN?
sina101.com
Web Development and Strategy Firm
The Risdall Interactive Agency s websites, strategies, branding, & promotion in digital space.
www.Risdall.net/

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