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)

public DbEntityValidationResult(
	DbEntityEntry entry,
	IEnumerable<DbValidationError> validationErrors
)

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:
© 2014 Microsoft