Data Validation Design Patterns

前端 未结 5 1555
灰色年华
灰色年华 2020-12-13 16:14

If I have a collection of database tables (in an Access file, for example) and need to validate each table in this collection against a rule set that has both common rules a

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 16:42

    Two approaches:

    1. CSLA where anonymous methods on business objects are used for validation.
    2. Read JP Boodhoo's blog where he has implemented a rules engine and has very detailed posts and sample code published. You can also see him at work on DNR Tv episode that's well worth watching.

提交回复
热议问题