DbEntityValidationException Constructor
Initializes a new instance of the DbEntityValidationException class.
Assembly: EntityFramework (in EntityFramework.dll)
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. |
DbEntityValidationException Constructor ()
Initializes a new instance of the DbEntityValidationException class using the default values.
DbEntityValidationException Constructor (String)
Initializes a new instance of the DbEntityValidationException class with specified error message.
Parameters
- message
-
Type:
System.String
The exception message.
DbEntityValidationException Constructor (String, Exception)
Initializes a new instance of the DbEntityValidationException class with specified error message and inner exception.
Parameters
- message
-
Type:
System.String
The exception message.
- innerException
-
Type:
System.Exception
The error that caused the exception.
DbEntityValidationException Constructor (String, IEnumerable<DbEntityValidationResult>)
Initializes a new instance of the DbEntityValidationException class using the specified error message and validation results.
public DbEntityValidationException( string message, IEnumerable<DbEntityValidationResult> entityValidationResults )
Parameters
- message
-
Type:
System.String
The exception message.
- entityValidationResults
-
Type:
System.Collections.Generic.IEnumerable<DbEntityValidationResult>
The validation results.
DbEntityValidationException Constructor (String, IEnumerable<DbEntityValidationResult>, Exception)
Initializes a new instance of the DbEntityValidationException class with specified error message, validation results and inner exception.
public DbEntityValidationException( string message, IEnumerable<DbEntityValidationResult> entityValidationResults, Exception innerException )
Parameters
- message
-
Type:
System.String
The exception message.
- entityValidationResults
-
Type:
System.Collections.Generic.IEnumerable<DbEntityValidationResult>
The validation results.
- innerException
-
Type:
System.Exception
The error that caused the exception.