Share via


DbValidationError Class

Definition

Validation error. Can be either entity or property level validation error.

[System.Serializable]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="FxCop rule is wrong; Database is not two words.", MessageId="Db")]
public class DbValidationError
[System.Serializable]
public class DbValidationError
type DbValidationError = class
Public Class DbValidationError
Inheritance
DbValidationError
Attributes

Constructors

DbValidationError(String, String)

Creates an instance of DbValidationError.

Properties

ErrorMessage

Gets validation error message.

PropertyName

Gets name of the invalid property.

Applies to