Share via


DatabaseGeneratedAttribute Class

Definition

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