SuppressDbSetInitializationAttribute Class
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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework