Export (0) Print
Expand All

DbEntityValidationResult Constructor

Entity Framework 5.0

Creates an instance of the DbEntityValidationResult class.

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

new : 
        entry:DbEntityEntry * 
        validationErrors:IEnumerable<DbValidationError> -> DbEntityValidationResult

Parameters

entry
Type: System.Data.Entity.Infrastructure.DbEntityEntry

The entity entry the results applies to. Never null.

validationErrors
Type: System.Collections.Generic.IEnumerable(DbValidationError)

A list of DbValidationError instances. This is never null, but can be empty, meaning that the entity is valid.

Show:
© 2015 Microsoft