Spring provides a UI-agnostic validation
framework in which you can declare validation rules, both
progammatically and declaratively, and have those rules evaluated against
- an arbitrary .NET object. Spring provides additional support for rendering
- of validation errors within Spring's ASP.NET framework. (See the section
- on ASP.NET usage tips
- for more information.) However, validation is not confined to the UI tier.
- It is a common task that occurs across most, if not all, applications
- layers. Validation that is performed in the UI layer is often repeated in
- the service layer, in order to be proactive in case non UI-based clients
- invoke the service layer. Validation rules completely different from those
- used in the UI layer may be used on the server side.
+ an arbitrary .NET object. Spring provides additional support for the
+ rendering of validation errors within Spring's ASP.NET framework. (See the
+ section on ASP.NET usage
+ tips for more information.) However, validation is not confined to
+ the UI tier. It is a common task that occurs across most, if not all,
+ applications layers. Validation that is performed in the UI layer is often
+ repeated in the service layer, in order to be proactive in case non
+ UI-based clients invoke the service layer. Validation rules completely
+ different from those used in the UI layer may also be used on the server
+ side.
To address some of the common needs for validation on the server
side, Spring provides parameter validation advice so that applies Spring's
diff --git a/doc/reference/src/validation.xml b/doc/reference/src/validation.xml
index f3bab082..9945c2a1 100644
--- a/doc/reference/src/validation.xml
+++ b/doc/reference/src/validation.xml
@@ -16,7 +16,12 @@
* limitations under the License.
*/
-->
-
+Validation Framework
@@ -351,6 +356,49 @@
not null or an empty string
+
+
+ system.DateTime
+
+
+
+
+ Not System.DateTime.MinValue and not
+ system.DateTime.MaxValue
+
+
+
+
+
+
+ One of the number types.
+
+
+
+
+ not zero
+
+
+
+
+
+
+ System.Char
+
+
+
+
+ Not System.Char.MinValue or whitespace.
+
+
+
+
+
+
+ Any reference type other than System.String
+
+ not null
+
@@ -880,4 +928,4 @@ bool userInfoIsValid = userInfoValidator.Validate(userInfo, errors);
-
\ No newline at end of file
+
diff --git a/src/Spring/Spring.Services/Spring.Services.build b/src/Spring/Spring.Services/Spring.Services.build
index 0407d067..478f0ede 100644
--- a/src/Spring/Spring.Services/Spring.Services.build
+++ b/src/Spring/Spring.Services/Spring.Services.build
@@ -7,7 +7,32 @@
* current.build.defines.csc - framework-specific build defines for C# compiler
-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+