The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This attribute can be applied to a class derived from
to set which version of the DbContext and DbContext conventions should be used when building a model from code--also known as "Code First". See the DbModelBuilder enumeration for details about DbModelBuilder versions. DbModelBuilderVersion
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false)]
public sealed class DbModelBuilderVersionAttribute : Attribute
DbModelBuilderVersionAttribute type exposes the following members.
If the attribute is missing from DbContextthen DbContext will always use the latest version of the conventions. This is equivalent to using DbModelBuilderVersion.Latest.
in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
( 1500 characters remaining)
Thank you for your feedback