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

Reply via email to