Share via


DbEntityValidationResult Class

Definition

Represents validation results for single entity.

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

Constructors

DbEntityValidationResult(DbEntityEntry, IEnumerable<DbValidationError>)

Creates an instance of DbEntityValidationResult class.

Properties

Entry

Gets an instance of DbEntityEntry the results applies to.

IsValid

Gets an indicator if the entity is valid.

ValidationErrors

Gets validation errors. Never null.

Applies to