DbContext.ShouldValidateEntity(DbEntityEntry) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension point allowing the user to override the default behavior of validating only added and modified entities.
protected virtual bool ShouldValidateEntity (System.Data.Entity.Infrastructure.DbEntityEntry entityEntry);
abstract member ShouldValidateEntity : System.Data.Entity.Infrastructure.DbEntityEntry -> bool
override this.ShouldValidateEntity : System.Data.Entity.Infrastructure.DbEntityEntry -> bool
Protected Overridable Function ShouldValidateEntity (entityEntry As DbEntityEntry) As Boolean
Parameters
- entityEntry
- DbEntityEntry
DbEntityEntry instance that is supposed to be validated.
Returns
true to proceed with validation; false otherwise.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework