SuppressDbSetInitializationAttribute Class

Definition

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.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false)]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="Casing is intentional")]
public sealed class SuppressDbSetInitializationAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false)]
public sealed class SuppressDbSetInitializationAttribute : Attribute
type SuppressDbSetInitializationAttribute = class
    inherit Attribute
Public NotInheritable Class SuppressDbSetInitializationAttribute
Inherits Attribute
Inheritance
SuppressDbSetInitializationAttribute
Attributes

Constructors

SuppressDbSetInitializationAttribute()

Applies to