DbContextAttribute Class
Definition
Identifies the DbContext that a class belongs to. For example, this attribute is used to identify which context a migration applies to.
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class DbContextAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type DbContextAttribute = class
inherit Attribute
Public NotInheritable Class DbContextAttribute
Inherits Attribute
- Inheritance
-
DbContextAttribute
- Attributes
Constructors
DbContextAttribute(Type) |
Initializes a new instance of the DbContextAttribute class. |
Properties
ContextType |
Gets the associated context. |