This script uses .NET attributes to provide validation for your strongly typed business objects.
Base classes ValidatableBase Provides the basic validation functionality.
Key Members:
- bool IsValid { get; } (Gets a bool indicating if the current state is valid.)
- ICollection ErrorMessages { get; } (Gets a ICollection of string that contain all the error messages.)
DataErrorInfoValidatableBase Extends ValidatableBase to implement IDataErrorInfo which allows user interface binding.
Key Members:
- string Error { get; } (Gets an error message indicating what is wrong with this object.)
- string this[string columnName] { get; } (Gets the error message for the property with the given name.)
NotifyValidatableBase Extends DataErrorInfoValidatableBase to implement INotifyPropertyChanged which allows user a interface to react to property changing.
Key Members:
- event PropertyChangedEventHandler PropertyChanged (Occurs when a property value changes.)
Software Details:
Version: 2.0.0.0 Beta
Upload Date: 1 Mar 15
Distribution Type: Freeware
Downloads: 96
Comments not found