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  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  CBO & collections
Previous Previous
 
Next Next
New Post 8/22/2006 9:58 AM
User is offline yoni go
149 posts
9th Ranked


CBO & collections 

Hi,
CBO don't fill my object 100% correct because my object also contains
object composition (reference to other object).
So, i have to re-iterate over the objects collection and the IDataReader
and fix the object inside. This, of course, add overhead to my module.
My questions are:
1. Is there some way to "guide" CBO how to composite object?
2. Does CBO expose some event when filling object so i can interfere and
composite the object?

Thanks.

 

 
New Post 8/22/2006 10:27 AM
User is offline yannick kiekens
192 posts
www.purplebox.be
9th Ranked


Re: CBO & collections 

This is what CBO does:

  1. Use reflection to determine all the Read/Write properties of your info object
  2. Check to see if those properties are defined in the datareader
  3. assign the datareader values to those properties

CBO uses shared functions, so there is no way to add event handlers
CBO supports value types, enums and strings

 

You do not have to use CBO in your code, it is just a tool included in DNN to lessen the code needed to write, It looks like you better write a custom instantiater function (datareader => objects)


Edit your Skin.xml and Container.xml files with:
Yannick's SXE
 
New Post 8/22/2006 3:41 PM
User is offline yoni go
149 posts
9th Ranked


Re: CBO & collections 
Thanks. I'll use your advice.
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  CBO & collections
 


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.

 


Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de
The Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com

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