Shunde.NET Framework Class Library

DBColumn.Validate Method 

Checks that the given Value is within the constraints placed upon it by this column.

public void Validate(
   DBObject obj,
   Object value
);

Remarks

This does not check the specific constraints specified in the constraints field. A Value violating those constraints will be found when attempting to save the object.

Exceptions

Exception Type Condition
ValidationException Thrown if the Value violates the constraints of this column. The Message property contains a friendly error message, suitable to show to end users, on why the validation failed.

See Also

DBColumn Class | Shunde.Framework Namespace