Export (0) Print
Expand All

SuppressDbSetInitializationAttribute Class

Entity Framework 5.0

This attribute can be applied to either an entire derived DbContext class or to individual DbSet<TEntity> or IDbSet<TEntity> properties on that class. When applied any discovered DbSet<TEntity> or IDbSet<TEntity> properties will still be included in the model but will not be automatically initialized.

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

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Property, AllowMultiple = false)]
public ref class SuppressDbSetInitializationAttribute sealed : public Attribute

The SuppressDbSetInitializationAttribute type exposes the following members.

  NameDescription
Public methodSuppressDbSetInitializationAttributeInitializes a new instance of the SuppressDbSetInitializationAttribute class.
Top

  NameDescription
Public propertyTypeId (Inherited from Attribute.)
Top

  NameDescription
Public methodEquals (Inherited from Attribute.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft