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)

'Declaration
Public Sub New ( _
	entry As DbEntityEntry, _
	validationErrors As IEnumerable(Of DbValidationError) _
)
'Usage
Dim entry As DbEntityEntry 
Dim validationErrors As IEnumerable(Of DbValidationError)

Dim instance As New DbEntityValidationResult(entry, validationErrors)

Parameters

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

The entity entry the results applies to. Never null.

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

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

Show:
© 2015 Microsoft