c# - Where do you place your validation logic? -



c# - Where do you place your validation logic? -

how construction code in next scenario:

several business objects (e.g.person, house, etc), , between them, need validate user inputs (which come in textboxes). go in either:

each business object the winforms codebehind a seperate (static?) class.

thanks

each business object. have classically made each 1 implement ivalidator interface spits out validation errors object.

c# oop

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -