I guess that this is what I get for reading the text and not the code.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
hammett
Sent: Saturday, June 17, 2006 4:58 AM
To: [email protected]
Subject: Re: [Castle-users] Using ActiveRecord with Legacy Database

public static IBusinessRule<Person> FirstName {
    get
    {
        return new
BusinessRule<Person>(MethodInfo.GetCurrentMethod().Name,delegate(Person
person)
            {
...

Wtf?

Is ok for you guys to use reflection on the domain classes?! IMHO validation
should be as  declarative as it can get, I know that some cases requires
context information and can't be declarative, but please, the approach
presented couldn't be more verbose. If I get paid for the amount of code I
write, than it would be perfect...


On 6/17/06, Ayende Rahien <[EMAIL PROTECTED]> wrote:
> http://www.jpboodhoo.com/blog/ValidationInTheDomainLayerTakeOne.aspx


--
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

Reply via email to