Export (0) Print
Expand All

System.Data.Entity.Validation Namespace

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

The System.Data.Entity.Validation namespace contains classes that are used to validate the contents of entity instances.

Public classDbEntityValidationExceptionRepresents an exception thrown from SaveChanges() when the validation of entities fails.
Public classDbEntityValidationResultRepresents validation results for single entity.
Public classDbUnexpectedValidationExceptionException thrown from GetValidationErrors() when an exception is thrown from the validation code.
Public classDbValidationErrorValidation error. Can be either entity or property level validation error.
© 2015 Microsoft