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 override the default behavior of validating only added and modified entities.
Namespace: System.Data.Entity
Assembly: EntityFramework (in EntityFramework.dll)
'Declaration
Protected Overridable Function ShouldValidateEntity ( _
entityEntry As DbEntityEntry _
) As Boolean
'Usage
Dim entityEntry As DbEntityEntry
Dim returnValue As Boolean
returnValue = Me.ShouldValidateEntity(entityEntry)
protected virtual bool ShouldValidateEntity(
DbEntityEntry entityEntry
)
protected:
virtual bool ShouldValidateEntity(
DbEntityEntry^ entityEntry
)
abstract ShouldValidateEntity :
entityEntry:DbEntityEntry -> bool
override ShouldValidateEntity :
entityEntry:DbEntityEntry -> bool
protected function ShouldValidateEntity(
entityEntry : DbEntityEntry
) : boolean
- entityEntry
Type: System.Data.Entity.Infrastructure.DbEntityEntry
DbEntityEntry instance that is supposed to be validated.
Type: System.Boolean
true to proceed with validation; false otherwise.