DbContext.ShouldValidateEntity (Método)

[Esta página es específica de la versión 6 de Entity Framework. La versión más reciente está disponible como el paquete NuGet de Entity Framework. Para más información sobre Entity Framework, consulte msdn.com/es-ES/data/ef].

Punto de extensión que permite al usuario reemplazar el comportamiento predeterminado de validar solo entidades de tipo Added o Modified.

Espacio de nombres:  System.Data.Entity
Ensamblado:  EntityFramework (en EntityFramework.dll)

Sintaxis

'Declaración
Protected Overridable Function ShouldValidateEntity ( _
    entityEntry As DbEntityEntry _
) As Boolean
'Uso
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

Parámetros

Valor devuelto

Tipo: System.Boolean
Es true para continuar con la validación; de lo contrario, es false.

Vea también

Referencia

DbContext Clase

System.Data.Entity (Espacio de nombres)