Model Builder Version Enum
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.
A value from this enumeration can be provided directly to the DbModelBuilder class or can be used in the DbModelBuilderVersionAttribute applied to a class derived from DbContext. The value used defines which version of the DbContext and DbModelBuilder conventions should be used when building a model from code--also known as "Code First".
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId="Db")] public enum DbModelBuilderVersion
public enum DbModelBuilderVersion
type DbModelBuilderVersion =
Public Enum DbModelBuilderVersion
Using DbModelBuilderVersion.Latest ensures that all the latest functionality is available when upgrading to a new release of the Entity Framework. However, it may result in an application behaving differently with the new release than it did with a previous release. This can be avoided by using a specific version of the conventions, but if a version other than the latest is set then not all the latest functionality will be available.