DbEntityValidationException Class

 

Represents an exception thrown from SaveChanges when the validation of entities fails.

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

System.Object
  System.Exception
    System.SystemException
      System.Data.DataException
        System.Data.Entity.Validation.DbEntityValidationException

[SerializableAttribute]
[SuppressMessageAttribute("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors", 
	Justification = "SerializeObjectState used instead")]
public class DbEntityValidationException : DataException

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.

NameDescription
System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyEntityValidationErrors

Gets the validation errors associated with the entity.

System_CAPS_pubpropertyHelpLink

(Inherited from Exception.)

System_CAPS_pubpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

(Inherited from Exception.)

System_CAPS_pubmethodGetType()

(Inherited from Exception.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Exception.)

NameDescription
System_CAPS_proteventSerializeObjectState

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

Return to top
Show: