Designing Business Objects to indicate constraints such as Max Length

Posted by JR on Stack Overflow See other posts from Stack Overflow or by JR
Published on 2010-02-16T17:35:38Z Indexed on 2010/06/18 6:23 UTC
Read the original article Hit count: 230

Is there a standard convention when designing business objects for providing consumers with a way to discover constraints such as a property's maximum length?

It could be used up in the UI layer to, for example, set a Textbox's MaxLength property according to the maximum length limit back in the business object.

Is there a standard design approach for this?

© Stack Overflow or respective owner

Related posts about validation

Related posts about object-oriented-design