Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DatabaseGeneratedOption Enumeration

DatabaseGeneratedOption Enumeration

.NET Framework 4.6 and 4.5

Represents the pattern used to generate values for a property in the database.

Namespace:  System.ComponentModel.DataAnnotations.Schema
Assemblies:   System.ComponentModel.Annotations (in System.ComponentModel.Annotations.dll)
  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

public enum DatabaseGeneratedOption

Member nameDescription
Supported by Portable Class LibraryComputedThe database generates a value when a row is inserted or updated.
Supported by Portable Class LibraryIdentityThe database generates a value when a row is inserted.
Supported by Portable Class LibraryNoneThe database does not generate values.

.NET Framework

Supported in: 4.6, 4.5

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft