SuppressDbSetInitializationAttribute (Clase)

[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].

Este atributo se puede aplicar a una clase DbContext derivada completa o a las propiedades IDbSet<TEntity> o DbSet<TEntity> individuales en esa clase. Cuando se aplican propiedades IDbSet<TEntity> o DbSet<TEntity> detectadas, se seguirá incluyendo en el modelo pero no se inicializará automáticamente.

Jerarquía de herencia

System.Object
  System.Attribute
    System.Data.Entity.Infrastructure.SuppressDbSetInitializationAttribute

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

Sintaxis

'Declaración
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Property, AllowMultiple := False)> _
Public NotInheritable Class SuppressDbSetInitializationAttribute _
    Inherits Attribute
'Uso
Dim instance As SuppressDbSetInitializationAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property, AllowMultiple = false)]
public sealed class SuppressDbSetInitializationAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Property, AllowMultiple = false)]
public ref class SuppressDbSetInitializationAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property, AllowMultiple = false)>]
type SuppressDbSetInitializationAttribute =  
    class 
        inherit Attribute 
    end
public final class SuppressDbSetInitializationAttribute extends Attribute

El tipo SuppressDbSetInitializationAttribute expone los siguientes miembros.

Constructores

  Name Descripción
Método público SuppressDbSetInitializationAttribute Inicializa una nueva instancia de la clase SuppressDbSetInitializationAttribute.

Superior

Propiedades

  Name Descripción
Propiedad pública TypeId (Se hereda de Attribute).

Superior

Métodos

  Name Descripción
Método público Equals (Se hereda de Attribute).
Método público GetHashCode (Se hereda de Attribute).
Método público GetType (Se hereda de Object).
Método público IsDefaultAttribute (Se hereda de Attribute).
Método público Match (Se hereda de Attribute).
Método público ToString (Se hereda de Object).

Superior

Implementaciones de interfaz explícita

  Name Descripción
Implementación explícita de interfacesMétodo privado _Attribute.GetIDsOfNames (Se hereda de Attribute).
Implementación explícita de interfacesMétodo privado _Attribute.GetTypeInfo (Se hereda de Attribute).
Implementación explícita de interfacesMétodo privado _Attribute.GetTypeInfoCount (Se hereda de Attribute).
Implementación explícita de interfacesMétodo privado _Attribute.Invoke (Se hereda de Attribute).

Superior

Seguridad para subprocesos

Todos los miembros static (Shared en Visual Basic) públicos de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

System.Data.Entity.Infrastructure (Espacio de nombres)