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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework