Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]
Extension point allowing the user to customize validation of an entity or filter out validation results. Called by GetValidationErrors().
Namespace: System.Data.Entity
Assembly: EntityFramework (in EntityFramework.dll)
'Declaration
Protected Overridable Function ValidateEntity ( _
entityEntry As DbEntityEntry, _
items As IDictionary(Of Object, Object) _
) As DbEntityValidationResult
'Usage
Dim entityEntry As DbEntityEntry
Dim items As IDictionary(Of Object, Object)
Dim returnValue As DbEntityValidationResult
returnValue = Me.ValidateEntity(entityEntry, _
items)
protected virtual DbEntityValidationResult ValidateEntity(
DbEntityEntry entityEntry,
IDictionary<Object, Object> items
)
protected:
virtual DbEntityValidationResult^ ValidateEntity(
DbEntityEntry^ entityEntry,
IDictionary<Object^, Object^>^ items
)
abstract ValidateEntity :
entityEntry:DbEntityEntry *
items:IDictionary<Object, Object> -> DbEntityValidationResult
override ValidateEntity :
entityEntry:DbEntityEntry *
items:IDictionary<Object, Object> -> DbEntityValidationResult
protected function ValidateEntity(
entityEntry : DbEntityEntry,
items : IDictionary<Object, Object>
) : DbEntityValidationResult
Type: System.Data.Entity.Validation.DbEntityValidationResult
Entity validation result. Possibly null when overridden.
Please sign in to use this experience.
Sign in