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.