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  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


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
1383 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.

 


Willhite & Sharron Realtors
Exemplary service for your Seattle Real Estate needs. It's what you deserve from your Realtor®!
www.alkihomes.com
PointClick DotNetNuke Solutions
PointClick Technologies provides high-end DNN Hosting for businesses.
PointClick.Net Hosted Solutions
Active Modules, Inc.
Creators of Active Forums, the best forum module for DotNetNuke
www.activemodules.com

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