DatabaseGeneratedAttribute 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.
Specifies how the database generates values for a property.
[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field, AllowMultiple=false)]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes")]
public class DatabaseGeneratedAttribute : Attribute
type DatabaseGeneratedAttribute = class
inherit Attribute
Public Class DatabaseGeneratedAttribute
Inherits Attribute
- Inheritance
-
DatabaseGeneratedAttribute
- Attributes
Constructors
DatabaseGeneratedAttribute(DatabaseGeneratedOption) |
Initializes a new instance of the DatabaseGeneratedAttribute class. |
Properties
DatabaseGeneratedOption |
The pattern used to generate values for the property in the database. |
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