DbEntityValidationException Constructor

 

Initializes a new instance of the DbEntityValidationException class.

Namespace:   System.Data.Entity.Validation
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodDbEntityValidationException()

Initializes a new instance of the DbEntityValidationException class using the default values.

System_CAPS_pubmethodDbEntityValidationException(String)

Initializes a new instance of the DbEntityValidationException class with specified error message.

System_CAPS_pubmethodDbEntityValidationException(String, Exception)

Initializes a new instance of the DbEntityValidationException class with specified error message and inner exception.

System_CAPS_pubmethodDbEntityValidationException(String, IEnumerable<DbEntityValidationResult>)

Initializes a new instance of the DbEntityValidationException class using the specified error message and validation results.

System_CAPS_pubmethodDbEntityValidationException(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.

public DbEntityValidationException()

DbEntityValidationException Constructor (String)

Initializes a new instance of the DbEntityValidationException class with specified error message.

public DbEntityValidationException(
	string 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.

public DbEntityValidationException(
	string message,
	Exception innerException
)

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.