語言

DatabaseGeneratedAttribute 類別

定義

指定資料庫如何產生屬性的值。

[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
繼承
DatabaseGeneratedAttribute
屬性

建構函式

名稱 Description
DatabaseGeneratedAttribute(DatabaseGeneratedOption)

初始化 DatabaseGeneratedAttribute 類別的新執行個體。

屬性

名稱 Description
DatabaseGeneratedOption

該模式用於在資料庫中產生屬性的值。

適用於