Normalising Common Business Rules for similar classes with CSLA 3.5.1

Normalising Common Business Rules for similar classes with CSLA 3.5.1

Old forum URL: forums.lhotka.net/forums/t/5425.aspx


Devman posted on Thursday, September 18, 2008

How do you refactor calls to CommonRules.StringMaxLength for multiple BOs that look at the same database table?  I can not see how to do this when using managed fields.

TIA

Devman 

stefan replied on Thursday, September 18, 2008

See this recent thread:

http://forums.lhotka.net/forums/thread/25852.aspx

Stefan

Devman replied on Thursday, September 18, 2008

Thanks for the quick response.

We are thinking of using the string overload for the MaxLengthRuleArgs.  That way we could avoid the need for an interface.  We would pass the ValidationRules collection to a static method in a custom rules manager class. 

Copyright (c) Marimer LLC