Interesting reads, but I am looking for a simpe solution to handle cross-object dependencies as well as differing validations based on an application context.

On 6/16/06, Ayende Rahien <[EMAIL PROTECTED]> wrote:

Jean-Paul Boodhoo  just posted about this, you may want to take a look:

 

http://www.jpboodhoo.com/blog/ValidationInTheDomainLayerTakeOne.aspx

http://www.jpboodhoo.com/blog/ValidationInTheDomainLayerTakeTwo.aspx

http://www.jpboodhoo.com/blog/HandlingDynamicRulesAPrecursor.aspx

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Craig Neuwirt
Sent: Saturday, June 17, 2006 2:19 AM


To: [email protected]
Subject: Re: [Castle-users] Using ActiveRecord with Legacy Database

 

Which part sounds awkard?  Having domain object specify specific validators and combine that with a contextual validation? or something else

 

My goal is to perform validation as simple as possible given validation specific to a model as well as cross-domain validation.  

 

How have you handled that in the past?  Did you just create a Validation service that accepts domain objects?

 

As always, I welcome your criticism :-)

 

On 6/16/06, hammett <[EMAIL PROTECTED]> wrote:

This sounds awkward.

On 6/16/06, Craig Neuwirt <[EMAIL PROTECTED] > wrote:
> It would be the normal approach.  Each DomainObject would accept an
> IDomainVisitor and call back on it.  The visitor would collect useful info
> such that after calling the DomainObjects IsValid method, it could then
> check cross-dependency validation.


--
Cheers,
hammett
http://hammett.castleproject.org/


_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users

 




_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users



_______________________________________________
CastleProject-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/castleproject-users

Reply via email to