DbModelBuilderVersionAttribute Class
Entity Framework 5.0
This attribute can be applied to a class derived from DbContext to set which version of the DbContext and DbModelBuilder conventions should be used when building a model from code. See the DbModelBuilderVersion enumeration for details about DbModelBuilder versions.
Namespace: System.Data.Entity
Assembly: EntityFramework (in EntityFramework.dll)
The DbModelBuilderVersionAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DbModelBuilderVersionAttribute | Initializes a new instance of the DbModelBuilderVersionAttribute class. |
| Name | Description | |
|---|---|---|
![]() | TypeId | (Inherited from Attribute.) |
![]() | Version | Gets the DbModelBuilder conventions version. |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Attribute.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Attribute.) |
![]() | GetType | (Inherited from Object.) |
![]() | IsDefaultAttribute | (Inherited from Attribute.) |
![]() | Match | (Inherited from Attribute.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute.GetIDsOfNames | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfo | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfoCount | (Inherited from Attribute.) |
![]() ![]() | _Attribute.Invoke | (Inherited from Attribute.) |
If the attribute is missing from DbContext then DbContext will always use the latest version of the conventions. This is equivalent to using Latest.
Show:
