DbEntityValidationException DbEntityValidationException DbEntityValidationException Class

Definition

Exception thrown from SaveChanges() when validating entities fails.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", Justification="SerializeObjectState used instead")]
[Serializable]
public class DbEntityValidationException : System.Data.DataException
type DbEntityValidationException = class
    inherit DataException
Public Class DbEntityValidationException
Inherits DataException
Inheritance
DbEntityValidationExceptionDbEntityValidationExceptionDbEntityValidationException
Attributes
SuppressMessageAttribute SerializableAttribute

Constructors

DbEntityValidationException() DbEntityValidationException() DbEntityValidationException()

Initializes a new instance of DbEntityValidationException.

DbEntityValidationException(String) DbEntityValidationException(String) DbEntityValidationException(String)

Initializes a new instance of DbEntityValidationException.

DbEntityValidationException(String, IEnumerable<DbEntityValidationResult>) DbEntityValidationException(String, IEnumerable<DbEntityValidationResult>) DbEntityValidationException(String, IEnumerable<DbEntityValidationResult>)

Initializes a new instance of DbEntityValidationException.

DbEntityValidationException(String, Exception) DbEntityValidationException(String, Exception) DbEntityValidationException(String, Exception)

Initializes a new instance of DbEntityValidationException.

DbEntityValidationException(String, IEnumerable<DbEntityValidationResult>, Exception) DbEntityValidationException(String, IEnumerable<DbEntityValidationResult>, Exception) DbEntityValidationException(String, IEnumerable<DbEntityValidationResult>, Exception)

Initializes a new instance of DbEntityValidationException.

Properties

EntityValidationErrors EntityValidationErrors EntityValidationErrors

Validation results.

Applies to