The reasoning for the current order is that you may want your object
properties as they are, but send something different to sql. The
current place event lets you do all operations:
-Change the property but not the SqlParameter.
-Change the SqlParameter but not the property.
-Change both, albeit in two steps for this specific scenario.
Anyway, this issue has been brought up enough times and I've been
considering adding a few more events to cover all the cases. It's very
likely that next version will include new hooks.
A good reason to add a new one is that we can add it before the check
for MyBase.IsDirty, allowing you to force the update if necessary.
> --
>
http://groups.google.com/group/CslaGenerator
> Post to:
CslaGe...@googlegroups.com
> Unsuscribe:
CslaGenerato...@googlegroups.com
> Join us on #CslaGenerator @
irc.freenode.net
--
Andrés