Share via


DbEntityValidationResult Constructor

Definition

Creates an instance of DbEntityValidationResult class.

public DbEntityValidationResult (System.Data.Entity.Infrastructure.DbEntityEntry entry, System.Collections.Generic.IEnumerable<System.Data.Entity.Validation.DbValidationError> validationErrors);
new System.Data.Entity.Validation.DbEntityValidationResult : System.Data.Entity.Infrastructure.DbEntityEntry * seq<System.Data.Entity.Validation.DbValidationError> -> System.Data.Entity.Validation.DbEntityValidationResult
Public Sub New (entry As DbEntityEntry, validationErrors As IEnumerable(Of DbValidationError))

Parameters

entry
DbEntityEntry

Entity entry the results applies to. Never null.

validationErrors
IEnumerable<DbValidationError>

List of DbValidationError instances. Never null. Can be empty meaning the entity is valid.

Applies to