Export (0) Print
Expand All

DatabaseGeneratedOption Enumeration

.NET Framework 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)

'Declaration
Public Enumeration DatabaseGeneratedOption

Member nameDescription
Supported by Portable Class LibrarySupported in .NET for Windows Store appsComputedThe database generates a value when a row is inserted or updated.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsIdentityThe database generates a value when a row is inserted.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsNoneThe database does not generate values.

.NET Framework

Supported in: 4.5.3

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8
Show:
© 2014 Microsoft