System.Data.Entity.Validation Namespace

Contains classes that are used to validate the contents of entity instances.

  Class Description
Public class DbEntityValidationException Exception thrown from SaveChanges() when entity validation fails.
Public class DbEntityValidationResult Represents validation results for single entity.
Public class DbUnexpectedValidationException Exception thrown from GetValidationErrors() when an exception is thrown from the validation code.
Public class DbValidationError Validation error. Can be either an entity- or a property-level validation error.