Login Skip Navigation LinksWilsonORMapper > Forums Search
Demo Version Demo Version
Download and try for yourself a fully working demo version, including sample apps and documentation.  The only limitation is that the demo version only works inside the debugger.

PayPal Subscribe
Get It All for $50 USD:
WebPortal, ORMapper,
Source Code, All Updates
PayPal

User Login User Login
Log In
 
 
Reset Password

Wilson ORMapper Forums Wilson ORMapper Forums : Feature Requests : Optionally initialize relation

Date Post
6/20/2006 2:49:09 PM Hi Paul,

Trying my request again but logged in this time.

Currently the relations are always initialized in your object Instance, in its internal constructor if the related field represents a parent. I need this initialization to be optional, so the parent can be null (in my situation that's the default).

Ideally the OR mapper deduces this from whether the reference id field is nullable. This feature would really help me out, because the alternative would be quite ugly. After doing a GetObject, or StartTracking I would have to go over my whole object structure and set properties to null again.

If you agree to such a feature I'd be happy to implement it myself and send you the code.

Thanks,

Wout

e-mail: wout at woutware dot com