DbEntityValidationException Class
Represents an exception thrown from SaveChanges when the validation of entities fails.
Assembly: EntityFramework (in EntityFramework.dll)
System::Exception
System::SystemException
System.Data::DataException
System.Data.Entity.Validation::DbEntityValidationException
| Name | Description | |
|---|---|---|
![]() | DbEntityValidationException() | Initializes a new instance of the DbEntityValidationException class using the default values. |
![]() | DbEntityValidationException(String^) | Initializes a new instance of the DbEntityValidationException class with specified error message. |
![]() | DbEntityValidationException(String^, Exception^) | Initializes a new instance of the DbEntityValidationException class with specified error message and inner exception. |
![]() | DbEntityValidationException(String^, IEnumerable<DbEntityValidationResult^>^) | Initializes a new instance of the DbEntityValidationException class using the specified error message and validation results. |
![]() | DbEntityValidationException(String^, IEnumerable<DbEntityValidationResult^>^, Exception^) | Initializes a new instance of the DbEntityValidationException class with specified error message, validation results and inner exception. |
| Name | Description | |
|---|---|---|
![]() | Data | (Inherited from Exception.) |
![]() | EntityValidationErrors | Gets the validation errors associated with the entity. |
![]() | HelpLink | (Inherited from Exception.) |
![]() | HResult | (Inherited from Exception.) |
![]() | InnerException | (Inherited from Exception.) |
![]() | Message | (Inherited from Exception.) |
![]() | Source | (Inherited from Exception.) |
![]() | StackTrace | (Inherited from Exception.) |
![]() | TargetSite | (Inherited from Exception.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetBaseException() | (Inherited from Exception.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetObjectData(SerializationInfo^, StreamingContext) | (Inherited from Exception.) |
![]() | GetType() | (Inherited from Exception.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Exception.) |
| Name | Description | |
|---|---|---|
![]() | SerializeObjectState | (Inherited from Exception.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



