Validating domain objects
16-Dec-2019 08:22
The anemic domain model is just a procedural style design, exactly the kind of thing that object bigots like me ...have been fighting since our early days in Smalltalk.
The '*' constraint is a special case: it means that the associated constraints ('nullable' and 'size' in the above example) will be applied to all properties in all validateable classes.Validate Email Address("[email protected]") Then Msg Box "E-mail address syntax is correct" Else Msg Box "Syntax check failed" End If ' Check email address for syntax and for domain existence.