DatabaseGeneratedAttribute Constructor (DatabaseGeneratedOption)

.NET Framework (current version)
 

Initializes a new instance of the DatabaseGeneratedAttribute class.

Namespace:   System.ComponentModel.DataAnnotations.Schema
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

public DatabaseGeneratedAttribute(
	DatabaseGeneratedOption databaseGeneratedOption
)

Parameters

databaseGeneratedOption
Type: System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption

The database generated option.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Return to top
Show: