DatabaseGeneratedAttribute(DatabaseGeneratedOption) 构造函数

定义

初始化 DatabaseGeneratedAttribute 类的新实例。

public:
 DatabaseGeneratedAttribute(System::ComponentModel::DataAnnotations::Schema::DatabaseGeneratedOption databaseGeneratedOption);
public DatabaseGeneratedAttribute (System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption databaseGeneratedOption);
new System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute : System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption -> System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute
Public Sub New (databaseGeneratedOption As DatabaseGeneratedOption)

参数

databaseGeneratedOption
DatabaseGeneratedOption

数据库生成的选项。

适用于