AtomsFramework Persistence Layer Reference Guide

IValidation Interface

[This is preliminary documentation and subject to change.]

Required functionality for the framework to perform object validation

For a list of all members of this type, see IValidation Members.

[Visual Basic]
Public Interface IValidation
[C#]
public interface IValidation

Types that implement IValidation

Type Description
PersistentObject The abstract class from which all persistent objects must inherit.

Remarks

The PersistentObject class already implements this interface, however if you are persisting non-inherited classes or interfaces then you can implement this interface in your business classes to provide validation feedback to the framework.

The IsValid method is called during the persisting of an object to determine if it can be saved or not, and the IsValidToDelete method is called during object deletion. If the methods return false then the object cannot be persisted or deleted as appropriate.

If the interface is not implemented the framework assumes that the object is valid

Requirements

Namespace: AtomsFramework

Assembly: AtomsFramework (in AtomsFramework.dll)

See Also

IValidation Members | AtomsFramework Namespace